Jonathan Medd's Blog
Scripting. Powershell, VMware, Windows, Active Directory & Exchange. All that kind of stuff…..
-
PowerShell 2.0: One Cmdlet at a Time #46 Test-WSMan
Posted on January 26th, 2010 No commentsContinuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Test-WSMan cmdlet.
What can I do with it?
Test whether WS-Management is available on a computer.
Example:
Test whether WS-Management is available on Test01.
Test-WSMan -ComputerName Test01
You will notice you receive a response detailing wsmid, ProtocolVersion, ProductVendor and ProductVersion if the query is successful.
How could I have done this in PowerShell 1.0?
Support for the use of WS-Management in PowerShell is provided as part of the 2.0 release.
Leave a reply







