Last active
January 19, 2022 09:37
-
-
Save spryffee/39abf6df983876e5ede2a132c9b28c73 to your computer and use it in GitHub Desktop.
recover admin password windows 10
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
# 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