Open Task Scheduler and Create a New Task under Actions In General tab. Give the task a name.Tick ‘Run with highest privileges’. In Actions tab Click New, set action to ‘Start a Program’Browse to the program location in program/script. In Settings tab Tick ‘Allow task to be run on demand’. Create a shortcut with the […]
Tag: task scheduler
Issues Running Powershell Scripts in Task Scheduler
If a script is not running or hanging when running task scheduler may indicate a 0x1 or 0x41301. Try to change the -ExecutionPolicy parameter powershell.exe -ExecutionPolicy Unrestricted -NonInteractive -NoProfile -File c:\scripts\script.ps1