password prompt

Use PowerShell to Reset Machine Domain Password

Q: How can I easily use PowerShell to reset a machine's domain password that has expired?

A: If a machine has its state reset to a previous point in time, such as through a backup restore or more commonly through the restore of a virtualization checkpoint, there's a chance it now has the incorrect machine password, which will break secure communications and therefore logons with the domain. One way to fix this is to move the machine to a workgroup, then add it back to the domain. Another option, using PowerShell 4.0, is to use the following command:

Test-ComputerSecureChannel -Repair -Credential Domain\User
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.