Hello to all . I need to export all domains' GPO to a HTML file so I use get-gporeport command. I'm importing the right module (Import-Module GroupPolicy) but I'm not figuring out a way to run the PoSH script with an admin username and password inside it so I don't need to be logged on while execution is running. I tried PSCredential object but I discovered that I can not run it as a parameter with get-gporeport command. I don't want to create a separate PoSH file that creates the PSCredential object and after it calls my get-gporeport PoSH file to run it. Any ideas?
Regards, EEOC.