script to change local machine administrator password?

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.
 
?

=?iso-8859-1?Q?J=F6rg_Ott?=

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
))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top