AD Forest Recovery - Resetting the computer account on the DC
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 and 2012 R2, Windows Server 2008 and 2008 R2
Use the following procedure to reset the computer account password of the DC.
To reset the computer account password of the domain controller
At a command prompt, type the following command, and then press ENTER:
netdom help resetpwd
Use the syntax that this command provides for using the Netdom command-line tool to reset the computer account password, for example:
netdom resetpwd /server:domain controller name /userD:administrator /passwordd:*
Where domain controller name is the local DC that you are recovering.
You should run this command twice.