Monday, November 5, 2007

Local User password Changes

net user userid password.

Use this command in login scripts / or with for loop in batch scripts to change passwords on multiple machines.
for /f %%c in (comp.txt) do ashu.bat %%c
where comp.txt contains the names of the systems where changes need to be made.
ashu.bat contain the commands that need to be run to accomplish the changes.

Do remember any kind of loop commands which run remotely need to be run using Domain Local Admin accounts.

No comments: