script to change local machine administrator password?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Archived from groups: microsoft.public.de.german.win2000.active_directory,microsoft.public.de.german.win2000.networking,microsoft.public.win2000.setup (More info?)

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.

--
--
spamfree999@rrohio.com
(Remove 999 to reply to me)
 
Archived from groups: microsoft.public.de.german.win2000.active_directory,microsoft.public.de.german.win2000.networking,microsoft.public.win2000.setup (More info?)

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

--
Gruß Jörg