Mundy

IT Knowledge Base

User Tools

Site Tools


run_powershell_scripts_from_task_scheduler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

run_powershell_scripts_from_task_scheduler [2018/04/09 09:56] (current)
Line 1: Line 1:
 +====== Run PowerShell Scripts from Task Scheduler ======
  
 +  * Program: Powershell.exe
 +  * Arguments: -ExecutionPolicy Bypass C:​\Scripts\script.ps1
 +
 +For testing, you can run the task with the "Run only when user is logged on" option turned on, so it runs the script interactively,​ allowing you to observe it and see if there are any errors. After testing, change it back to "Run whether user is logged on or not".
 +
 +{{page>​ad&​noeditbutton&​nofooter}}
run_powershell_scripts_from_task_scheduler.txt · Last modified: 2018/04/09 09:56 (external edit)