Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: NT password
net password \\mydomain user oldpass newpassNote: the important thing to remember is that you can change an NT password ONLY on a PDC, unless you directly login to a BDC, i.e. it has to be on your subnet. The other thing to remember is that you have to wait for replication to occur, otherwise you may not be able to access the server when you first change your password.
I have the above code in a batch file that I RunHide from within Winbatch. It uses environment variables to pass the Winbatch script created variables (userid, oldpassword, newpassword) to the batch file. It also writes an errorlevel to an INI file which I create and then check inside the script for errors which indicate if the change was successful or not. This is then used to change other passwords, if successful, or give back an error to the user and prompt them to try again if unsuccessful.
Article ID: W13524
Filename: Change NT Password from Win95 Machine.txt
File Created: 1999:04:15:16:54:36
Last Updated: 1999:04:15:16:54:36