script to change local machine administrator password?

  • Thread starter Thread starter Leythos
  • Start date Start date
L

Leythos

I'm trying to find a script that I can use to change the LOCAL computers
administrator account password when a user logs on to the network so
that I don't have to visit 100+ computers and do it manually.

Any ideas or better solutions?

Thanks.
 
Leythos wrote:

Did you notice "de.german" in the newsgoup names?
I'm trying to find a script that I can use to change the LOCAL
computers administrator account password when a user logs on to the
network so that I don't have to visit 100+ computers and do it
manually.

Any ideas or better solutions?

Use psexec from www.sysinternals.com to call "net user" on the remote
machine.

Maybe you can use a NetBIOS browser query to obtain a machine list:

for /f "skip=3 tokens=2" %%a in ('browstat dumpnet') do (
for /f "tokens=1 skip=3 delims=\ " %%i in ('browstat view %%a') do (
psexec \\%%i net user Administrator NewPassword
))
 
Back
Top