Disconnect-WSMan - 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 Disconnects the client from the WinRM service on a remote computer. Syntax Disconnect-WSMan [-ComputerName <string>] [<CommonParameters>] Description The Disconnect-WSMan cmdlet disconnects the client from the WinRM service on a remote computer. If you saved the WS -Management session in a variable, the session object remains in the variable, but the state of the WS-Management s ession is "Closed". You can use this cmdlet within the context of the WS-Management provider to disconnect the clie nt from the WinRM service on a remote computer. However, you can also use this cmdlet to disconnect from the WinRM service on remote computers before you change to the WS-Management provider. For more information about how to connect to the WinRM service on a remote computer, see Connect-WSMan.