DefSec.blog

DefSec.blog – Random IT Stuff, Cybersecurity, Active Directory

Menu
  • Cybersecurity
  • Active Directory
  • Azure Active Directory
Menu

How to reset the Directory Services Restore Mode administrator account password in Windows Server

Posted on January 22, 2023January 27, 2023 by th3alch3m1st

It’s a good practice to have a unique Directory Services Restore Mode(DSRM) password for each Domain Controller(DC) in your environment and to reset it at least every six months. This password is first set when a member server is promoted to a Domain Controller.

The DSRM password act as the local admin password on Domain Controllers. Domain Controllers don’t have a local administrator like member servers and workstations. In case Active Directory(AD) fails and you are not able to log in with your domain credentials, this password is used to log onto the Domain Controller locally using .\administrator as the username.

DSRM should be unique for each Domain Controller and the following procedure will need to be done for all DCs in your domain:

  1. Open elevated PowerShell, type ntdsutil and hit Enter
  2. Type set dsrm password
  3. Next type reset password on server null (this will reset the password on the server you are working on)
      • If you want to reset the password for a remote Domain Controller use this command instead reset password on server server_name. Note server_name is the DNS name for the remote server
  4. Type the new DSRM password when prompted and then once more to confirm
  5. At the “Reset DSRM Administrator Password” prompt type q and hit Enter
  6. At the “ntdsutil.exe” prompt type q and hit “Enter” to exit the utility

Share on Social Media
x linkedin
  • Active Directory (4)
  • Azure Active Directory (1)
  • Cybersecurity (4)
  • IT Stuff (1)

Recent Posts

  • How to remove domain applied GPO settings

    February 8, 2023
  • Disable IPv6 to prevent DNS spoofing

    February 5, 2023
  • Disable Link-Local Multicast Name Resolution(LLMNR) via Group Policy

    January 27, 2023
  • Roll over the Kerberos decryption key of the "AZUREADSSO" computer account

    January 22, 2023
  • Disclaimer
  • Contact
©2023 DefSec.blog