Tips, Tricks, and Fixes for when your computer doesn't do what it's told.

Monday, March 24, 2008

Running CMD.EXE as Local system account

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: