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.

Don Jones

September 16, 2010

1 Min Read
paintbrush on palette of mixed primary colors

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.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like