Use PsExec.exe from SysInternals.
e.g. this will open a new command prompt running as NETWORK SERVICE:
psexec -i -u "nt authority\network service" cmd.exe this will run it as LOCAL SYSTEM:
psexec -i -s cmd.exe You can verify these by running whoami from the cmd prompt.
Read full article from command line - How do I 'runas' 'Network Service'? - Stack Overflow
No comments:
Post a Comment