Scripting. Powershell, VMware, Windows, Active Directory & Exchange. All that kind of stuff…..
RSS icon Email icon Home icon
  • PowerShell 2.0: One Cmdlet at a Time #46 Test-WSMan

    Posted on January 26th, 2010 Jonathan Medd No comments

    Continuing 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.

    Test-WSMan

    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.

    1000 things 1% better!

    Leave a reply