ChangePassword Method (ADOX)

Changes the password for a user account.

Syntax

  
User.ChangePassword OldPassword, NewPassword  

Parameters

OldPassword
A String value that specifies the user's existing password. If the user doesn't currently have a password, use an empty string ("") for OldPassword.

NewPassword
A String value that specifies the new password.

Remarks

For security reasons, the old password must be specified in addition to the new password.

An error will occur if the provider does not support the administration of trustee properties.

Applies To

User Object (ADOX)

See Also

Groups and Users Append, ChangePassword Methods Example (VB)