Skip to main content

Resetting Forgotten Domain Administrator Password for Server 2003


Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home. It is common that we forget some of them. One of the most frustrating things is we sometimes forget critical information which we did not write down on a piece of paper because it is critical! Domain administrator password is one of this kind. This article will guide you through the steps to reset the domain administrator password. Oh don't forget the milk, if you do, noone can help you to recover the damage that your wife will cause to your brain.

Please note that I have tested this in a test environment and personally seen that it worked. Changing the domain administrator password may cause some services in your environment to fail because of the password mismatch. Consider changing the password of all services or software that uses domain administrator account to operate. I do not take any responsibility of any damage caused to your system when following this article. However, if you have problems regarding this, I will gladly help you in EE forums.

We will be using the "INSTSRV SRVANY" command tool provided in Windows Server 2003 Resource Kit. You can download the resource kit here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

In this scenario, we will assume that our forgotten password is "Experts1" and we will be replacing it with "ExpertsReset1"

Prerequisites:

We must have access to a domain controller using its local administrator password,
We must download the resource kit and extract it to a folder. 

I recommend extracting it to System32 folder or copy the cmd.exe from System32 folder and paste it to the folder you extracted the tools. This way you will not have to bother with paths.

I have created a folder named ResetPassword at the root of "C:" drive and extracted the tools there. I also copied cmd.exe to that location. Please modify the paths and names through the article for your environment.

The logic here is to create and modify a service that will automatically start and change the domain administrator password on next restart. 

1) First, we will need to restart the domain controller. While the restart process, press F8 to bring up the Windows Advanced Options menu. Choose "Directory Services Restore Mode (Windows domain controllers only)". Note that the Active Directory is disabled in this mode and no modifications can be made on it. This mode is for resolving issues about Directory Service Database and restoring. Access the console by providing the local administrator credentials.

2) Open a command prompt and navigate to the ResetPassword folder. Run the SRVANY tool with INSTSRV in command prompt:

INSTSRV PasswordReset SRVANY.exe
1:
2:
3:
4:
5:
6:
7:
8:
C:\ResetPassword>INSTSRV PasswordReset SRVANY.exe
 
The service was successfully added!
 
Make sure that you go into the Control Panel and use 
the Services applet to change the Account Name and 
Password that this newly installed service will use 
for its Security Context.


The PasswordReset string in this command can be anything you like. It is just to identify the keys and services created by the tool. Hereafter, this string will be used as PasswordReset that means you will need to replace the paths in the article if you modify the string.

3) Open regedit and navigate to:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\PasswordReset

In the right pane, right click an open area and click New > Key and name it as Parameters. Now navigate to the new Parameters key from the left pane.

4) Right click on the right pane and click New > String Value and name it as Application. Double click on Application, write C:\ResetPassword\cmd.exe in the Value data field and click OK.

5) Again right click and create a new String value by clicking New > String value. Name it as AppParameters. Double click it, write /k net user administrator ExpertsReset1and clik OK. Remember that "ExpertsReset1" will be our new domain administrator password.

Now that we created these keys:

Name: Application
Type: REG_SZ (string) 
Value: C:\ResetPassword\cmd.exe

Name: AppParameters
Type: REG_SZ (string) 
Value: /k net user administrator ExpertsReset1

6) Now we will check if our service is created. Go to Services snap-in by either services.msc Run command or by going to Control Panel > Administrative Tools > Services. Check the list for the PasswordReset service. Right click the service and click Properties. Make sure that the Startup type is set to Automatic.

7) Navigate to Log On tab and tick the Allow service to interact with desktop checkbox.

8) Click Apply, then OK.

9) If you are sure that you have done everything right, restart the server in normal mode. Your password will reset in the startup process. You may get a command prompt that says "The command completed successfully" for the first time you logon. 

10) Now let's remove the tool and the service we created to prevent any security risks. To do this, we must first stop the service and remove it. Open a command prompt and run:

net stop PasswordReset
sc delete PasswordReset
1:
2:
3:
4:
5:
6:
C:\>net stop PasswordReset
 
The PasswordReset service was stopped successfully
 
C:\>sc delete PasswordReset
[SC] DeleteService SUCCESS


11) Remove the ResetPassword folder you created which includes the tools to recreate this service.

Comments

Popular posts from this blog

test vpn bandwidth and speed with iperf

This article explains how to use a free utility called iPerf to test the speed of a VPN connection. In this example I am running iPerf on windows but there are other versions available (i.e. Linux). Download iPerf from  http://linhost.info/2010/02/iperf-on-windows/ Put a copy on 2 computers with 1 either side of the VPN. In this example I have put in the c:\triangle folder On the “server” PC open a cmd prompt and navigate to the folder containing iperf. Note on computers running Win7 or Win2008 I recommend running the cmd prompt in elevated mode. Run the command  iperf –s On the “client” PC open a cmd prompt and again navigate to the folder containing iperf. Run the command  iperf –c After a short while the estimated bandwidth is displayed.

Installing the East-Asian language packs

Windows XP SP3 Info 1. Go to Start > Control Panel > Regional & Language Options (or Date, Time, Language and Regional Options) > Languages. 2. Check the box for Install files for East Asian Languages > Click OK and let the process run and then you will have to Restart your PC. Alternatively, you may need to install the East Asian Language pack that is on your original Windows disc. Outlined below is a step-by-step guide to installing it in your computer (for Windows XP - Vista users might have to undergo different steps, but they should still be similar). Try it and see if it works for you: 1. Insert your Windows XP CD 2. Go to Control Panel 3. Go to Regional and Language Options 4. Click on the Languages Tab 5. Click on the Install files for East Asian Languages checkbox and make sure that it's checked. 6. Click on the OK button for the dialog box that appears. 7. Click on the OK button of the window to close it, and begin the installation. ...

Check Disk & NTLDR Missing in Windows

System restart automatically in booting process 1)Boot from cd 2)Select First Repair 3)Type map to know which drive was CD ROM drive 4)suppose cd rom drive is e then type e:     press enter 5)type chkdsk /r c: and press enter after 100% compleated type exit and automatically restart the m/c in case of NTLDR Missing error same steps up to 3 rd step 4) type copy ntldr c:   and press enter 5)type copy ntdectet.com c:  press enter