Store Secured Password in PowerShell Script

Automation is awesome, but what if you need to run a script with elevated privileges?   If you are following security best practices then the account you login with most likely doesn’t have the required elevated privileges.  Storing your password in plain text in your scripts is no good either.  So what do we do?  There are several options and each has there place, but I’ll show you my favorite below.  Check out the full article by clicking on the link below.  While you are there check out some of my other posts, the script repository and the resource page.

Store Secured Password in PowerShell Script


As always make sure once you’ve checked us out over at to head back here to read more awesome PowerShell posts on

If you have some comments, questions or advice I’m happy to hear it.  Thanks for reading and I hope everyone likes the article.



One thought on “Store Secured Password in PowerShell Script

Comments are closed.