WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change NT Domain Password From Windows 95

Keywords:    NT password

Question:

How do you change NT password from a Win95 workstation?

Answer:

The best (only?) way to change an NT password from a Win95 workstation is with the command line options. For this example, assume your PDC is Mydomain, the userid is user, old password is oldpass and the new password is newpass, this would be the command line syntax:
	net password \\mydomain user oldpass newpass
Note: 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