From LedHed's Wiki
Overview
Who hasn't wanted to rejoin a workstation without a reboot? Well here's how! (Ya ya NETDOM I know).
PowerShell
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)
Reference
http://kunaludapi.blogspot.com/2016/03/powershell-rocks-rejoin-computers-in.html?m=1
[Category:Windows]