PowerShell 2.0: One Cmdlet at a Time 27 Test-ComputerSecureChannel

Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Test-ComputerSecureChannel cmdlet.

What can I do with it?

Test the secure channel between the local computer and the domain and optionally fix if necessary.

Example:

Test the secure channel on the current computer

Test-ComputerSecureChannel

Note: this will return a Boolean value of True or False as seen below; if you wish for more detailed information use the -Verbose parameter.

If the result is False then you can attempt to fix the problem by using the -Repair parameter.

Test-ComputerSecureChannel -Repair

How could I have done this in PowerShell 1.0?

The best way to do it would have been using the NetDom command line tool.

Test:

netdom verify Server01 /domain:test.local

Repair:

netdom reset Server01 /domain:test.local

1000 things 1% better!