Easiest way to change local admin password on multiple PCs

  • Thread starter Thread starter EasyE
  • Start date Start date
E

EasyE

What is the easiest way to change the local administrator
password for PCs in a particular OU?
 
What is the easiest way to change the local administrator
password for PCs in a particular OU?

Using DSQUERY, parse the output of
dsquery * domainroot -filter "(&(objectCategory=Computer)(objectClass=User))"
-attr sAMAccountName distinguishedName
in a FOR command
for your OU and use PsExec to open a CMD session on each returned computer where
you would issue a
net user Administrator TheNewPassword




Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top