| title | ChangePassword Method (ADOX) | Microsoft Docs | ||
|---|---|---|---|
| ms.prod | sql | ||
| ms.prod_service | connectivity | ||
| ms.technology | connectivity | ||
| ms.custom | |||
| ms.date | 01/19/2017 | ||
| ms.reviewer | |||
| ms.topic | conceptual | ||
| apitype | COM | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | d187fbc6-5fac-4abb-803d-bf344dcf0302 | ||
| author | MightyPen | ||
| ms.author | genemi |
Changes the password for a user account.
User.ChangePassword OldPassword, NewPassword
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.
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.
Groups and Users Append, ChangePassword Methods Example (VB)