Thursday, October 15, 2015

Command schtasks

For schtasks command, Do not put "/RP" with u wanna use "/IT". it might not work.

eg.
schtasks /CREATE /S 192.168.1.10 /RU ru_name /TN 123test /SC ONCE /TR "Powershell.exe D:\test123.ps1" /ST 13:00 /SD 10/10/2016 /IT /f /RL highest

schtasks /CREATE /TN 123test /SC ONCE /TR "Powershell.exe D:\test123.ps1" /ST 13:00 /SD 10/10/2016 /IT

2 comments:

jack said...

nice

www.paperpreneurs.com said...

Many thanks to the author - it worked fr this particular case. I concede you are a hacker)