How can I get a command prompt as the SYSTEM user on Windows 7?
Context: I'm testing a computer startup script, and I need to figure out the behavior of a command when run as SYSTEM rather than my user account.
I've seen ways to do this with at
and psexec
, but those methods only appear to work on Windows XP or Windows Vista.
I'm using Windows 7 Pro SP1.
This was asked on Stack Overflow. The accepted answer uses PsExec (from the Systinternals suite) as Scott suggested.
Another solution involves creating a service that runs under the System account to run the command interpreter. You can do this manually, or use a program that creates the services, runs the prompt, then deletes the service automatically. I just tried it and it worked a treat:
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다