Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

July 24, 2008 12:00 AM

Changing the Password on a DC's DSRM and Recovery Console Administrator Account

Windows IT Pro
InstantDoc ID #99255
Rating: (2)

Q: How can I change the password of a domain controller’s (DC's) Directory Services Restore Mode (DSRM) and Recovery Console administrator account?

A: First, let me explain the differences between AD’s DSRM and Recovery Console. Both are Windows disaster-recovery tools. DSRM is available only on Windows DCs and enables a server operator to restore the Active Directory (AD) from a backup copy. To get into DSRM, you must press and hold the F8 key when your system starts. When you do so, Windows will prompt you for a password (i.e., the DSRM administrator account’s password) and then start the machine in an administrative context that will let you repair AD from the command line. DSRM is commonly used for an authoritative restore of the AD database, which can be started using the ntdsutil command-line tool. You can use authoritative restore to restore accidentally deleted objects in your AD database.
 
Unlike DSRM, the Recovery Console isn't available from the Windows boot menu and can be used on non-DC Windows machines. Similar to DSRM, it provides a command-line interface from which you can initiate repair and recovery actions. The Recovery Console is available as an option when you run the Windows Setup CD. When Setup runs, it checks to see whether there's already a copy of Windows on the machine. If there is, Setup asks you whether you want to try to repair the existing copy or simply install a fresh copy. If you select Repair, Windows prompts for the Recovery Console’s administrator password and then enters the Recovery Console.
 
Microsoft didn't include the Recovery Console in Windows Server 2008 and Windows Vista. Instead, Server 2008 and Vista include the System Recovery Options menu that provides both disaster recovery and system-diagnostics features. You can access it by using the Repair your computer option that displays when you boot your system from a Server 2008 or Vista installation CD. For more information about the Systems Recovery Options menu, go to http://windowshelp.microsoft.com/Windows/en-US/Help/326b756b-1601-435e-99d0-1585439470351033.mspx.
 
On a Windows DC, DSRM and the Recovery Console leverage the same administrator account and password for controlling access to their troubleshooting and repair features. Administrators set a DC’s DSRM and Recovery Console administrator password during the dcpromo process (i.e., when they're promoting a Windows server to an AD DC). The DSRM and Recovery Console administrator account is stored in the registry-based Security Accounts Manager (SAM) database of the local DC. The SAM is located in the %SystemRoot%\System32\Config folder. The DSRM and Recovery Console administrator account and password are computer-specific and aren't replicated to other DCs in a domain.
 
In Windows 2000, you can reset the DSRM and Recovery Console’s administrator password using the setpwd.exe command-line tool that's included in Win2K SP2. In Server 2008 and Windows Server 2003, you must use the ntdsutil.exe command-line tool to reset the DSRM and Recovery Console’s administrator password. To do so, start ntdsutil by typing ntdsutil at the command line, type set dsrm password (or in short format set d p), and then type reset password on server %servername%. (Note that you must replace %servername% with the name of the DC on which you want to reset the password.) Next, enter the new password, type q to quit the dsrm command, and type q to quit ntdsutil.

Related Content:

ARTICLE TOOLS

Comments
  • Hussain
    4 years ago
    Aug 25, 2008

    I have a Win XP build that has the switch user option disabled. A user locked the machine and forgot their password. Their password was reset, but they had to re-boot the workstation for the new password to take effect. Is there a way to have the password reset and not require the user to reboot as there might be some unsaved work on their workstation.

    Any help on this would be greatly appreciated.

    Thanks.

  • joe
    4 years ago
    Aug 22, 2008

    Thank you very much

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.