Changing server password from command prompt

Published: 28th March 2011
Views: N/A
Ask About This Article Print Republish This Article
Imagine a situation in which a system administrator of a company gets terminated, leaves the company abruptly or set such complex password that he himself forgets. What will happen? Everybody will be in a tight situation as everything goes to standstill. The next system administrator worries that formatting the system will result in loss of important data.
To overcome this problem, the system administrator can follow the process given here. For this process, he should have local access to the Domain Controller (DC) and local Administrator password. He would also need two tools provided by Microsoft in their Resource Kit: SRVANY and INSTSRV. He needs to download them from Microsoft website.
Restart Windows 2003 in Directory Service Restore Mode by pressing F8 and choosing Directory Service Restore Mode. It will disable Active Directory. Log on as Local Administrator. You now have full access to the computer resources, but you will not be able to make any changes to Active Directory.
Now install SRVANY. It will have full access on the system and can virtually run any program as a service. You need to configure SRVANY to start the command prompt so that it can run the net user command.

Copy SRVANY, INSTSRV and cmd.exe to a temporary folder. You will usually find cmd.exe in %WINDIR%\System32.
Start a command prompt, point to the temporary folder and type:
instsrv passrecovery temp folder name\srvany.exe
Now configure SRVANY. For this, you need to create a new subkey called Parameters and add two new values. Click on Start>>Run.. Type Regedit in the box and navigate to
HKEY_ LOCAL_ MACHINE\System\Current Control Set\Services\PassRecovery.
Type the following:
Name: Application
Type: REG_SZ(string)
Value: temp folder\cmd.exe
Name: AppParameters
Type: REG_SZ(string)
Value: /k net user administrator 123456/domain
You need to replace 123456 with the password you want. If you have not changed the default domain policy, you have to use a complex password.
Now go to Start>>Settings>>Control Panel>> Administrative Tools>>Services and open the PassRecovery property tab. See that the startup mode is set to Automatic. From the Log On tab enable the option Allow service to interact with the desktop.

When you restart Windows normally, SRVANY will run the NET USER command and reset the domain admin password.
Now log on with the Administrator's account and the password you've set and uninstall SRVANY Using this command prompt. Type
Net stop PassRecovery
Sc delete PassRecovery
Delete the temporary folder and voila! Your problem is solved.
For more information on this topic, please visit
http://www.recoveryknowledgebase.com/Windows-Server-Password-Recovery.htm


This article is free for republishing
Source: http://amrita.articlealley.com/changing-server-password-from-command-prompt-2145635.html


Report this article Ask About This Article Print Republish This Article


Loading...
More to Explore
 


Ask a Professional Online Now
27 Experts are Online. Ask a Question, Get an Answer ASAP.
Type your question here...
Optional:
Select...