Scheduling a PowerShell script
Make sure Powershell is installed and the execution policy is remote signed. To know more about how to check and set execution policy, see my post on Executing a PowerShell script.
Schedule the PowerShell script execution using the Windows task scheduler.
Suppose your PowerShell script file is Main.ps1 and is located at “D:\Scripts” folder then following would be the command to run
Schedule the PowerShell script execution using the Windows task scheduler.
Suppose your PowerShell script file is Main.ps1 and is located at “D:\Scripts” folder then following would be the command to run