Setup: A computer with PowerShell Problem: You need to run scripts which require credentials, unattended. You can store the password on the disk and load at runtime. Solution: Run this command to create a file to store the password Add these in your script to create a credential object at runtime: