PowerShell – Repair the domain trust relationship

Sometimes it happens that the trust relationship between a workstation and the Active Directory fails. There are a few different reasons for this behavior but today we will just fix it with one PowerShell command.

This is the spell in question:

Test-ComputerSecureChannel -Repair -Credential (Get-Credential)

Leave a Reply

Your email address will not be published. Required fields are marked *