Advertisement
metalx1000

Windows Autorun command as admin at startup

Feb 24th, 2017
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.21 KB | None | 0 0
  1. #at startup as system
  2. schtasks /create /tn "TaskName" /tr <task command line> /sc ONSTART /ru system
  3.  
  4. #ever hour
  5. SCHTASKS /Create /TN "New Task" /SC HOURLY /TR blah.exe /RU username /RP password /RL HIGHEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement