If you've run into a situation where you can't log into a Windows 10 computer because your domain credentials no longer work as the computer object was deleted from Active Directory and you don't know the local Administrator account. You can reset the local Administrator account using the steps below.
- Hold down shift and click on the reboot button on the Windows 10 login screen. It will reboot into recovery mode.
- Go into the Command Prompt from recovery mode.
- Enter in the Bitlocker Key if your disk is Bitlocked.
- Overwrite utilman.exe with cmd.exe.
- move c:\windows\system32\utilman.exe c:\windows\system32\utilman.exe.bak
- copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe
- Reboot the computer using the following command.
- wpeutil reboot
- On the login prompt after rebooting, click on the Utility Manager icon. This will open up the command prompt.
- Change the password of the Adminstrator account by using the following command.
- net user administrator <new password>
- Exit the Command Prompt and log in with the new password.