Question : Reset a password through a script

Reset a password through a script

I have an excel spreadsheet with 4 columns  IP address,username,password
username is the same for all computers,it's a local administrator account.
I need a script that changes the password from the one provided on the spreadsheet to "NewPwd" on each computer


Thanks





Answer : Reset a password through a script

You can do this quickly and securely using the Microsoft utility PsPasswd.

Copy the IP Address column of your spreadsheet into a text file, so that there is one address per line.  Place pspasswd.exe in the same directory and then run a command like this:

1:
pspasswd @computerlist.txt username NewPwd
Open in New Window Select All
Random Solutions  
 
programming4us programming4us