A quick and easy way to automate something is to schedule a PowerShell script using Windows Task Scheduler. However, sometimes you need to connect to remote resources using a username and password. This post will cover some options on how to schedule a PowerShell script with encrypted credentials.

Read my full post over at the 4Sysops Blogs:

https://4sysops.com/archives/scheduling-powershell-scripts-with-usernames-and-encrypted-passwords/