Monday, August 10, 2009

How to spawn a command shell under windows 'system' user

This trick can be useful if you want to debug user permission issues with a Windows NT service that logs on under "Local System account" (the default).

First, figure out your current system time:

C:\>time

The current time is: 6:15:18.57

Second, use the 'at' command to start an interactive command shell when the next minute starts:

C:\>at 6:16 /interactive cmd

Now inside this new command shell, try your command which is run under this new user.

No comments:

Post a Comment