Created
January 3, 2012 17:56
-
-
Save rponte/1556084 to your computer and use it in GitHub Desktop.
running cmd.exe as a windows service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- install cmd.exe as a windows service | |
sc create CmdAsService binpath= "cmd /K start" type= own type= interact | |
-- now execute this to run cmd.exe service | |
sc start CmdAsService | |
-- you can delete cmd.exe service with this command | |
sc delete CmdAsService |
not work in windows 11 more
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for more informations,
http://blogs.msdn.com/b/adioltean/archive/2004/11/27/271063.aspx
http://stackoverflow.com/questions/77528/how-do-you-run-cmd-exe-under-the-local-system-account
http://blogs.oracle.com/nbprofiler/entry/monitoring_java_processes_running_as
http://verbalprocessor.com/2007/12/05/running-a-cmd-prompt-as-local-system/