Skip to content

Instantly share code, notes, and snippets.

@fstamour
Last active August 29, 2015 14:01
Show Gist options
  • Save fstamour/5eaf040b8078cfd940f5 to your computer and use it in GitHub Desktop.
Save fstamour/5eaf040b8078cfd940f5 to your computer and use it in GitHub Desktop.
System privilege on windows
From http://msdn.microsoft.com/en-us/library/ms684190%28VS.85%29.aspx
psexec -i -s -h %systemroot%\system32\cmd.exe
or
runas.exe /savecred /user:administrator %systemroot%\system32\cmd.exe
WhoAmI.exe
or
echo %userprofile%
to confirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment