Skip to content

Instantly share code, notes, and snippets.

@spryffee
Last active January 19, 2022 09:37
Show Gist options
  • Save spryffee/39abf6df983876e5ede2a132c9b28c73 to your computer and use it in GitHub Desktop.
Save spryffee/39abf6df983876e5ede2a132c9b28c73 to your computer and use it in GitHub Desktop.
recover admin password windows 10
# Boot from Windows 10 Installation ISO https://www.microsoft.com/en-au/software-download/windows10
Shift+F10 # open a DOS command prompt window
# Create a Secondary (Local) Administrator User
# Note: it may fail if system disk is not D:, then type "Dir E:", "Dir F:" etc until you find which drive is system
Move D:\Windows\System32\utilman.exe D:\Windows\System32\utilman.bak
Copy D:\Windows\System32\cmd.exe D:\Windows\System32\utilman.exe
wpeutil reboot
# allow Windows to boot up normally, not from ISO
# bring up a command prompt at the login screen by clicking the "Ease of Access" option on the Windows 10 login screen.
net user TemporaryUser password /add
net localgroup administrators TemporaryUser /add
exit
# Log into Windows 10 with the new "TemporaryUser" account just created
# References
https://www.experts-exchange.com/articles/31752/How-to-Reset-a-forgotten-Windows-10-Password.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment