How to get command prompt as the SYSTEM user

For trouble-shooting purposes, it's often convenient to launch a Windows command prompt as the 'SYSTEM' user (This is the user account all Windows services run.)

  1. Open command prompt (keyboard: Windows key+R), and type "cmd.exe" to get a command prompt as you
  2. Execute at 12:34 /interactive "cmd.exe" (change 12:34 to one or two minutes ahead of the current time.)
  3. Wait for a few minutes
  4. You should see a new command prompt. That one runs as the system user.
  5. You can verify that by running "echo abc > x" and then run "dir /Q" to see that the newly created file is owned by administrators.

When all else fails and you still can't convince the SYSTEM user to do what you want, consider running Hudson just as a start-up program on admin with auto-login. This is much easier to set up.


Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.