Uses the Key Distribution Center (KDC) password (kpasswd) value to change the password of the logged-on user. The output of the command informs you of the success or failure status.
You can check whether the kpasswd is set, by running the ksetup /dumpstate command and viewing the output.
Syntax
ksetup /changepassword <oldpassword> <newpassword>
Parameters
| Parameter | Description |
|---|---|
<oldpassword> |
Specifies the logged-on user's existing password. |
<newpassword> |
Specifies the logged on user's new password. This password must meet all the password requirements set on this computer. |
Remarks
-
If the user account isn't found in the current domain, the system will ask you to supply the domain name where the user account resides.
-
If you want to force a password change at next logon, this command allows the use of the asterisk (*) so the user will be prompted for a new password.
Examples
To change the password of a user who is currently logged on to this computer in this domain, type:
ksetup /changepassword Pas$w0rd Pa$$w0rd
To change the password of a user who is currently logged on in the Contoso domain, type:
ksetup /domain CONTOSO /changepassword Pas$w0rd Pa$$w0rd
To force the currently logged on user to change the password at the next logon, type:
ksetup /changepassword Pas$w0rd *
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
