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

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

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.