Last active
October 6, 2018 19:58
-
-
Save tuneis/b798cf75156a8c388264a06f546a4bde to your computer and use it in GitHub Desktop.
Lost Password Recovery New Admin User
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
// move copy the files | |
wmic logicaldisk get name | |
move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak | |
copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe | |
wpeutil reboot | |
// add new user | |
net user <username> /add | |
net localgroup administrators <username> /add | |
// delete cmd that is utilman and rename file bak file back to original | |
del Utilman.exe | |
rename Utilman.exe.bak Utilman.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment