Occasionally you cannot RDP to a remote machine because your password has expired. This article provides a powershell script which allows remote password changing, as long as you know the previous password.
https://evotec.xyz/how-to-change-your-own-expired-password-when-you-cant-login-to-rdp/