Use PsExec.exe from SysInternals, running from an elevated command prompt.
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.
See also:
-
http://forum.sysinternals.com/how-to-start-cmdexe-as-network-service_topic15797.html
-
Interactive command prompt as NETWORK SERVICE