Chris Nackers Blog

ConfigMgr and MDT Deployment Solutions

Useful Blogs

User Groups

NT Authority Context Command Prompt - Troubleshooting software install rights

Sometimes it is useful to create a command prompt under the NT Authority/System context to test things. Most often this is a great way to test if an application can install under system context.

One way to do do this is to create a service that allows you to create a system command prompt whenever you start the service.

First you need to create the service:

sc create ntauthcmd binpath= "cmd /K start" type= own type= interact

Then you can use this command to start the service:

sc start ntauthcmd

Now, whenever you start that service, you will have a command prompt under the system context.

image

Comments

skissinger said:

Nice, I have been using verbalprocessor.com/.../running-a-cmd-prompt-as-local-system , but I like your solution also.

# May 6, 2009 4:17 PM

cnackers said:

Yeah i Like just being able to click on the batch file and launch a command prompt for testing.

# May 6, 2009 4:26 PM