Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Test-ComputerSecureChannel

Test-ComputerSecureChannel - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Test-ComputerSecureChannel

Short description
Tests and repairs the secure channel between the local computer and its domain.

Syntax
Test-ComputerSecureChannel [-Credential <PSCredential>] [-Repair] [-Server <String>] [-Confirm] [-WhatIf] [<CommonParam
eters>]





Description
The Test-ComputerSecureChannel cmdlet verifies that the secure channel between the local computer and its domain is wor
king correctly by checking the status of its trust relationships. If a connection fails, you can use the Repair paramet
er to try to restore it.


Test-ComputerSecureChannel returns "True" if the secure channel is working correctly and "False" if it is not. This res
ult lets you use the cmdlet in conditional statements in functions and scripts. To get more detailed test results, use 
the Verbose parameter.


This cmdlet works much like NetDom.exe. Both NetDom and Test-ComputerSecureChannel use the NetLogon service to perform 
the actions.