Change Windows Administrator Password Using Limited Account

by on January 30th, 2010

If you have forgotten your Windows Administrator password then by using guest account or any other limited account you can reset administrator password very easily. All you have to do is to create a file, paste the following script in it and set desired new password in it. Save that file in .vbs format. Run it, Administrator password will be changed.

Option Explicit
Dim oNet,sUser,sComputer
Set oNet = Wscript.CreateObject("Wscript.Network")
sUser = oNet.UserName
sComputer = oNet.ComputerName
On Error Resume Next
Set sUser = GetObject("WinNT://" & sComputer & "/admin,user")
sUser.SetPassword "new-password"

Open notepad. Copy paste above code in that.
change new-password text from
sUser.SetPassword “new-password”
into desired password.
Save it with .vbs extension.
Run it.
Now log off. Enjoy your lost windows admin account again.

3 Reviews

  1. love says:

    this trick is not working

  2. Hiroshi says:

    @ROHIT: You will have to define both user name and passwords yourself in the script and then run script. After that login using your user name and password you defined.

  3. ROHIT says:

    hi HIROSHI what should I input as user name?? . Thanks in advance.