This command and script was created for ease of convenience, simplicity and speed during a recent job
Set-ADAccountPassword <username> -Reset -NewPassword (ConvertTo-SecureString -AsPlainText <password> -Force)
And to prevent them from changing or changing at logon
Set-AdUser -Identity <username> -CannotChangePassword:$true -ChangePasswordAtLogon:$false
Mark is an Independent Microsoft Teams Consultant with over 15 years experience in Microsoft Technology. Mark is the founder of Commsverse, a dedicated Microsoft Teams conference and former MVP. You can follow him on twitter @UnifiedVale