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

wNT
plus

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

wntChgPasswd and Error 589 Error Changing Password

Keywords:      wntChgPasswd

Question:

I seem to be having a problem using the 32bit Network Extender on NT. I'm trying to use the WntChgPswd command to change passwords. I've written a script that prompts for the existing password and new password and then executes the command to change the password for the current user in the current domain. This is the format I'm using:
        Result=wntchgpswd("","",new,old)
This seems to work if you are logged on with a local user account. If you are part of a domain (even with administrative rights) I get the error:
        WIL Extender Error: 589: Error Changing Password
Are there any restrictions when using this command that are not documented that may be preventing it from working properly?

Answer:

  1. Make the error happen again, then look in your windows directory for your wwwbatch.ini file. Find the "lastError" line for the extender you are using and let us know what it is. We can look up a more detailed error message.

  2. Try specifying actual values for the server and/or username parameters, instead of blank strings.

Question (continued):

I've run the script again and this is the line in the WWWBATCH.INI file:
	LastError=1327 (NetUserChangePassword)

Answer:

The error is:
	"Logon failure: user account restriction"
Again, try specifying real values for the first two parameters. And check to make sure that the specified user is permitted to change the password.

Resolution (continued):

Thanks for your help. There was an account policy that did not allow the passwords to be changed because of the Minimum Password Age.

It seems to be working fine now. Thanks.


Article ID:   W13574
Filename:   wntChgPasswd and Error 589 Error Changing Password.txt
File Created: 1999:04:15:16:54:56
Last Updated: 1999:04:15:16:54:56