Script: change domain credential via WINRM

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)