Open PowerShell as an administrator.
Connect to your Active Directory domain by running the following command:
Import-Module ActiveDirectory
Set-ADAccountPassword -Identity johndoe -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "newpassword" -Force)
Replace “newpassword” with the new password you want to set for the user. You will be prompted to enter your own credentials for the domain administrator or a user with reset password permission.
Get-ADUser johndoe -Properties PasswordLastSet
This command will display the last time the user’s password was changed. If it was recently changed, then the password reset was successful.