Active Directory Forest Recovery - Reset the computer account on the DC legacy

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.

Reset the computer account password of the domain controller

  1. At a command prompt, type the following command, and then press ENTER:

    netdom help resetpwd
    
  2. 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're recovering.

    Note

    You should run this command twice.

Next steps