Jacky said:
Hi All,
What is the best way or tool to change the Administrator password for about
800 computers that is not on a domain?
Any help or suggestions is greatly appreciated.
Thank you,
Jacky
Time to start using psexec.exe! (
www.sysinternals.com)
1. Compile a list of each and every NetBIOS name,
e.g. in c:\PCs.lst.
2. Create this batch file on your own PC:
@echo off
set Sempaphore=Nov2005.txt
for /F %%a in (c:\PCs.lst) do call :Sub %%a
goto :eof
:Sub
ping %1 -n 1 | find /i "bytes=" || (set result=fail & goto report)
if exist \\%%a\c$\%Semaphore% goto :eof
set result=Success
psexec \\%%a net user administrator NewPassword
echo %date% %time% > \\%1\c$\%Semaphore%
:Report
echo %date% %time% %1 %result% >> c:\report.txt
3. Run this batch file from your machine. You must be logged
on as a domain admin. It will take several hours for the
batch file to run.
The batch file will run the "net user ..." command on each and
every PC listed in c:\PCs.lst. PCs that cannot be reached are
skipped. PCs that had the password changed on a previous
occassion are skipped too.
A comprehensive log of all actions is compiled in c:\report.txt.