Search This Blog

Friday, December 31, 2010

Change Local Administrator Password at Startup

1. Open notepad and type the following code

Set WshNetwork = WScript.CreateObject("WScript.Network")
strComputer = "."
Set objUser = GetObject("WinNT://" & strComputer & "/Administrator,user")
objUser.SetPassword "Password"
objUser.SetInfo

2. Save it in c:\startup\change.vbs

3. Open Registry Editor (regedit).

4. Navigate to the following node MyComputer\HKey_Local_Machine\SOFTWARE\Policies
\Microsoft\Windows\System\Scripts\Startup

5. Create a string under start up node with the following name FileSysPath.

6. In the FileSysPath Modify the value to c:\startup\change.vbs

7. This will change the administrator password to "Password" during start up.
 

No comments:

Post a Comment