Skip to content

Instantly share code, notes, and snippets.

@tuneis
Last active October 6, 2018 19:58
Show Gist options
  • Save tuneis/b798cf75156a8c388264a06f546a4bde to your computer and use it in GitHub Desktop.
Save tuneis/b798cf75156a8c388264a06f546a4bde to your computer and use it in GitHub Desktop.
Lost Password Recovery New Admin User
// 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