How can I schedule a Powershell script to run every day at 3am in Windows 8?
|
EDIT: This is a proof of concept that worked for me.
|
|||||||||||
|
|
run 'taskschd.msc', navigate to Powershell and create the job/schedule. |
|||
|
|
|
It took me a while to get my Scheduled PowerShell task to work. Here are a few tactics that helped me. a) Get a simple PowerShell script working. My killer problem was not realising PowerShell was the program and the script was merely an argument. Another minor help was introducing -ExecutionPolicy Bypass before the file name thus: Finally, I am never sure about the SuperUser etiquette, but this is my page on the subject of Scheduling PowerShell. |
|||
|
|
powershell /?to know how to run a PS1 script from the command-line. – Karan Dec 27 '12 at 22:30