Warning
- Use “!unsecure” for port 5985
- Remove “!unsecure” for port 5986
Use the script to change the domain credential via WINRM
!unsecure
powershell Set-ADAccountPassword -Identity “[#USERNAME#]” -Reset -NewPassword (ConvertTo-SecureString -AsPlainText “[#NEW_PASSWORD#]” -Force)