force-change-password
Create a PS Credential object (owned user cred)
$password = ConvertTo-SecureString '<PASSWORD>' -AsPlainText -Force$cred = New-Object System.Management.Automation.PSCredential('INLANEFREIGHT\wley', $password)Create a new user secure string object
$newPass = ConvertTo-SecureString 'Password@123' -AsPlainText -ForceChange user's password
Set-DomainUserPassword -Identity damundsen -AccountPassword $newPass -Credential $cred -VerboseCreate password object
$UserPassword = ConvertTo-SecureString 'Password@123' -AsPlainText -ForceSet password
Set-DomainUserPassword -Identity andy -AccountPassword $UserPasswordLast updated