How can I change the Recovery Console or Directory Restore Safe Mode Administrator password on a Domain Controller?
If you're not 'techie' or are short on time, our team always recommends the SpotMau PowerSuite 2010. This tool automatically makes you the ultimate startup CD for resetting any Windows password.
It's also loaded with a ton of other recovery tools IT techs use daily.
-Petri IT Knowledgebase Team
When you promote a Windows 2000 or Windows Server 2003 Server-based computer to a domain controller, you are prompted to type a Directory Service Restore Mode Administrator password. This password is also used by Recovery Console, and is separate from the Administrator password that is stored in Active Directory after a completed promotion.
The Administrator password that you use when you start Recovery Console or when you press F8 to start Directory Service Restore Mode is stored in the registry-based Security Accounts Manager (SAM) on the local computer. The SAM is located in the %SystemRoot%\System32\Config folder. The SAM-based account and password are computer specific and they are not replicated to other domain controllers in the domain.
For ease of administration of domain controllers or for additional security measures, you can change the Administrator password for the local SAM. To change the local Administrator password that you use when you start Recovery Console or when you start Directory Service Restore Mode, use one of the following methods:
Method #1
If Windows 2000 Service Pack 2 or later is installed on your computer, you can use the Setpwd.exe utility to change the SAM-based Administrator password. To do this:
- At a command prompt, change to the %SystemRoot%\System32 folder.
- To change the local SAM-based Administrator password, type
setpwd
and then press ENTER.
- To change the SAM-based Administrator password on a remote domain controller, type
setpwd /s: servername
and then press ENTER, where servername is the name of the remote domain controller.
- When you are prompted to type the password for the Directory Service Restore Mode Administrator account, type the new password that you want to use.
Note: If you make a mistake, repeat these steps to run setpwd again.
Method #2
On Windows 2000, if you do know the Directory Service Restore Mode Administrator password you can easily change it to something else by using the following method:
- Shut down the domain controller on which you want to change the password.
- Restart the computer. When the selection menu screen is displayed during the restart process, press F8 to view advanced startup options.
- Select the Directory Service Restore Mode option.
- After you successfully log on, use one of the following methods to change the local Administrator password:
At a command prompt, type the following command:
net user administrator *
or
Use the Local User and Groups snap-in (Lusrmgr.msc) to change the Administrator password.
- Shut down and restart the computer.
You can now use the Administrator account to log on to Recovery Console or Directory Services Restore Mode using the new password.
Method #3
On Windows 2000, if you do not know the Directory Service Restore Mode Administrator password you can easily change it to something else by using the following method:
- At a command prompt, type the following command:
net user administrator 123456
This will change the local administrator's password to 123456.
Method #4
On Windows Server 2003, the setpwd or NET USER trick won't work. Here, if you want to change the Directory Service Restore Mode Administrator password you'll need to use the following method:
- Click, Start, click Run, type
ntdsutil
and then click OK.
- At the Ntdsutil command prompt, type
set dsrm password
- At the DSRM command prompt, type one of the following lines:
To reset the password on the server on which you are working, type
reset password on server null
The null variable assumes that the DSRM password is being reset on the local computer. Type the new password when you are prompted. Note that no characters appear while you type the password.
or
To reset the password for another server, type
reset password on server
where <servername> is the DNS name for the server on which you are resetting the DSRM password. Type the new password when you are prompted. Note that no characters appear while you type the password.
- At the DSRM command prompt, type q.
- At the Ntdsutil command prompt, type q to exit.
You can now use the Administrator account to log on to Recovery Console or Directory Services Restore Mode using the new password.
Links
The Configure Your Server Wizard Sets Blank Recovery Mode Password - 271641![]()
How to Change the Recovery Console Administrator Password on a Domain Controller - 239803![]()
Protection of the Administrator Account in the Offline SAM - 223301![]()
How can I reset the Directory Service Restore Mode Administrator password?![]()
How To Reset the Directory Services Restore Mode Administrator Account Password in Windows Server 2003 - 322672![]()
Excel Password Recovery![]()


