Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Test-ComputerSecureChannel

Test-ComputerSecureChannel - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


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

Test-ComputerSecureChannel [-Repair] [-Server <string>] [-Confirm] [-WhatIf] [<CommonParameters>]

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

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

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