PowerShell 2.0: One Cmdlet at a Time 56 Disconnect-WSMan
Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Disconnect-WSMan cmdlet.
What can I do with it?
Disconnect a connection previously made to a remote computer using WS-Management with the Connect-WSMan cmdlet.
Example:
Disconnect from the remote server Test01 using WS-Management .
Disconnect-WSMan -ComputerName Test01
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.