Q. Can PowerShell scripts run under alternate credentials?
The short answer is no, not easily. You can certainly schedule a script to run under alternate credentials, using Task Scheduler's ability to specify the credentials.
September 16, 2010
Q. Can PowerShell scripts run under alternate credentials?
A. The short answer is no, not easily. You can certainly schedule a script to run underalternate credentials, using Task Scheduler's ability to specify the credentials. You can also use a script packager. (One is available in PrimalForms and PrimalScript; both are commercial tools.) A packager wraps your script in an executable file and applies alternate credentials when launching. You still need PowerShell installed on target systems in order for the package to run.
Do you have a Windows PowerShell question? Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.
About the Author
You May Also Like