No, this won’t fix human trust relationships! but it will help you with Domain Trust Issues. This seems to happen more and more, the common fix was to dis-join from the domain, then re-join the domain.

Powershell has a command called Test-ComputerSecureChannel that doesn’t seem to get the recognition that it richly deserves! It has been around since Server 2008 R2 and will check the relationship with the Domain Controller if it returns a $true then the relationship is good, if it returns a $false then obviously the relationship is broken and needs repairing.

First method using Test-ComputerSecureChannel:

# This can be run on the local computer to repair the domain trust

Test-ComputerSecureChannel -Repair

I of course always like any commands that I can perform remotely, not that I am lazy but its just simply more efficient and that is the story I am sticking to! You can do this remotely on a system by using this snippet of code.:

I am the original "CodeMonkey", founder, CISSP and a Sr. System Administrator with over 31 years experience. I specialize in PowerShell Scripting and Virtualization. I hope that everyone will enjoy the site and contribute to make this a great resource for everyone!
Author of "PowerShell Studio - A Comprehensive Guide"