Change Local Administrator Password at Logon


Script that will change the local Administrator Password at start up.

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.


Comments

Author: Sarva31 Dec 2010 Member Level: Gold   Points : 0

Nice One......



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: