Create remote Scheduled tasks with schtasks.exe

schtasks /create /S <servername> /RU <user with admin rights> /RP <password> /SC daily /RL HIGHEST /TN <taskname> /TR “”C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe” -ExecutionPolicy RemoteSigned -NoProfile -File C:\Scripts\<scriptname>.ps1″ /ST 00:30

Leave a Reply

Your email address will not be published. Required fields are marked *