Bulk Change Local Users Password

  • Thread starter Thread starter Eric Fadely
  • Start date Start date
E

Eric Fadely

I have around 300 machines on my network and I want to
globally change the local admin's password. I already
use a security policy to rename the account but I have
had the same password for too long on that account and
want it changed. I have found the cusrmgr.exe from the
W2K Tool kit but I get an error message when I run
it "cusrmgr -u jnapier -P oldn@vy01 -m \\dlltis700w0"
*** ERROR *** RC:0x0035" . Is there another way to do
this or am I forced to visit 300 machines?
 
You can do this using WScript.
It´s something like this:

Set strUser = GetObject("WinNT://" & strComputerName & "/administrator")
strUser.SetPassword strNewPass
 
The error may be due to your new password not meeting the local security policy password requirements, meaning: if your local security policy password requirements estates that your password must be all caps, or must contain at least 1 number, etc,
 
Back
Top