Reset Directory Services Restore Mode password in Windows Server

In this step by step guide, learn how to reset Directory Services Restore Mode password in Windows Server 2019/2016/2012/2008/2003.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

While working on a Windows Server, if something went wrong with Active Directory (AD) database, you will need to troubleshoot it. In this case, Directory Services Restore Mode (DSRM) is the way to resolve the issue. Basically, DSRM is there to repair or recover AD, when you’re having trouble with it. While you promote the server to a Domain Controller, you should be asked to create a DSRM password. That window is shown in below screenshot. In this article, we’ll see how to reset Directory Services Restore Mode account password in Windows Server.

How To Create Domain In Windows Server

In the above screenshot, you can see the window asking you to set a DSRM password. To set this password, you need to be member of member of the Domain Administrators group. If you ever lost this password and AD database is corrupted, you might not able to resolve the issue. Because to enter into Directory Services Restore Mode, you’ll be required to use this password. So let us see how you can reset DSRM password without restarting the server in DSRM.

Reset Directory Services Restore Mode password in Windows Server

1. Right click Start Button or press W8K + X keys and select Run.

2. In Run, type ntdsutil and press Enter key or click OK.

Reset Directory Services Restore Mode password in Windows Server

3. This should open Command Prompt in NT Directory Service Utility mode. Type set dsrm password now and press Enter key.

4. Next, if you’re resetting DSRM password for current server, type reset password on server null and hit Enter. In case, if you’re resetting DSRM password for another server, execute reset password on server <servername> command. Make sure you replace <servername> with another server DNS name.

5. After step 4, you’ll be asked to enter new DSRM password and then to confirm it. If this worked, you’ll see ‘Password has been set successfully’ message.

6. Now as the DSRM password is reset, you can execute q command to quite DSRM Command Prompt. Again executing q command will allow you to exit Command Prompt.

Reset Directory Services Restore Mode password in Windows Server

You can now use the new DSRM password to repair or recover AD database.

That’s it!

Share this article
https://www.kapilarya.com/reset-directory-services-restore-mode-password-in-windows-server

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

Leave a Comment

Your email address will not be published. Required fields are marked *