JSI Tip 0199 - How do I change the local Administrator password on all my Workstations without traveling?

Jerold Schulman

July 11, 1997

1 Min Read
ITPro Today logo

I use the Soon command from the reskit but the AT command will work:

soon \MachineName cmd /c "net user AccountName NewPassword"

I use a batch file:

echo on >password.log
@echo MachineName1 >>password.log
ping MachineName1 >>password.log
if %errorlevel%
0 soon \MachineName1 cmd /c "net user AccountName1 NewPassword1" >>password.log
@echo MachineName2 >>password.log
ping MachineName2 >>password.log
if %errorlevel%
0 soon \MachineName2 cmd /c "net user AccountName2 NewPassword2" >>password.log

@echo ** end of file ** >>password.log

exit



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like