Reset Local Admin Passwords via GPO
Posted on 2006-05-05
I have a script that I am using to reset the local admin passwords on my PCs via a GPO. I put the following vbscript in the startup of the policy.
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set objUser = GetObject("WinNT://" & WshNetwork.ComputerName & "/Administrator, user")
It works great for XP, actually changes the password, but I get a script error on line #2 on Windows 2000 machines.
Any help you can give me would be greatly appreciated,