To reset the Administrator password on Windows Server 2012 R2, perform the following steps:
- Boot from Microsoft Windows Server 2012 installation DVD / ISO Image.
- From Windows Setup menu, click Next > Repair your computer > Troubleshoot > Command Prompt.
- Run following commands:
d: cd windows\system32 ren Utilman.exe Utilman.exe.old copy cmd.exe Utilman.exe
- Close command prompt and click Continue.
- After server reboot and present the logon screen, click Windows Key + U to open command prompt.
- Type following command:
net user administrator Password123
This will set the Administrator password to Password123 (case sensitive).
Cleanup Steps:
- Restart server and boot from Microsoft Windows Server 2012 installation DVD / ISO Image.
- From the Windows Setup menu, click Next > Repair your computer > Troubleshoot > Command Prompt.
- Run following commands:
d: cd windows\system32 ren utilman.exe utilman.exe.new copy utilman.exe.old utilman.exe
- Close the command prompt and click Continue.
To reset the Administrator password on Windows Server 2008 R2, perform the following steps:
- Boot from Microsoft Windows Server 2008 installation DVD / ISO Image.
- From the Install Windows menu, click Next > Repair your computer.
- In the System Recovery Options, select the Operating System instance that you wish to repair and click Next > Command Prompt.
- Run following commands:
c: cd windows\system32 ren Utilman.exe Utilman.exe.old copy cmd.exe Utilman.exe
- After server reboot and present the logon screen, press Windows Key + U to open command prompt.
- Enter following command:
net user administrator Password12
This will set the Administrator password to Password12 (case sensitive).
Cleanup Steps:
- Delete the newly created Utilman.exe from C:\Windows\System32.
- Rename Utilman.exe.old back to Utilman.exe.
Alternative: Offline NT Password & Registry Editor