It can be useful to run the command shell under the Local System account. For example, a service that runs on the local system account needs a certificate installed; this could be performed by opening a cmd window as local system.
Create a .cmd file with the following contents:
sc delete testsvc
sc create testsvc binpath= "cmd /K start" type= own type= interact
sc start testsvc
http://blogs.msdn.com/adioltean/articles/271063.aspx
No comments:
Post a Comment