Use PowerShell to Reset Machine Domain Password

Use PowerShell to reset an expired machine password.

John Savill

October 7, 2014

1 Min Read
password prompt

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 DomainUser

About the Author(s)

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like