Subscribe to Windows IT Pro
September 17, 2010 12:01 AM

Q. Can PowerShell scripts run under alternate credentials?

Windows IT Pro
InstantDoc ID #125888
Rating: (0)

A. 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. 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? Why not submit it to Don? Post your question at windowsitpro.com/go/SubmitFAQ and you might see your answer online! Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.