How do I execute a PowerShell script automatically using Windows task scheduler?

Create the scheduled task and set the action to:

Program/Script: Powershell.exe

Arguments: -File "C:\Users\MyUser\Documents\ThisisMyFile.ps1"

Leave a Comment