Last active
August 29, 2015 14:01
-
-
Save fstamour/5eaf040b8078cfd940f5 to your computer and use it in GitHub Desktop.
System privilege on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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