Most people are familiar with using AT to open a command prompt as SYSTEM (LOCAL SYSTEM)
at 11:05 /interactive cmd.exe
This will open a command prompt as system (or actually, as whatever account the task scheduler service is running under)
This works OK but trying to script it is a complicated mess, plus you have to wait a minute or so for the window to pop up...and if the task scheduler service is running as another user then you're not really getting your prompt to run as SYSTEM.
So, a better way would be to use SC and create your own interactive service that runs as system:
See the code here--> CmdAsSystem.txt (rename from .TXT to .CMD to run it)
Number2 (John Nelson)
MyITForum - Forum Posts
MyITForum - Blog
