OpsaC - Operating as PowerShell code
published: July 20, 2018 author: Tinu tags: Active Directory categories: PowerShell
Im Systemlog Event ID 5719 Source NETLOGON und 7043 This cmdlet works much like NetDom.exe. Both NetDom and Test-ComputerSecureChannel use the NetLogon service to perform the actions. Test a channel between the local computer and a domain controller
Test-ComputerSecureChannel
Reset the channel between the local computer and its domain PowerShell fix repair The trust relationship between this workstation and the primary domain failed
$DomJoinCreds = Get-Credential -message 'Enter credentials of a user with join-domain permissions'
Test-ComputerSecureChannel -Repair -Credential $DomJoinCreds
Display detailed information about the test
Test-ComputerSecureChannel -verbose