Disconnects the client from the WinRM service on a remote computer. (Disconnect-WSMan)

   

# NAME
Disconnect-WSMan

# SYNOPSIS
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 session is "Closed". You can use this cmdlet within the context of the WS-Management provider to disconnect the client 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.

# PARAMETERS
-ComputerName <string>
Specifies the computer from which you want to disconnect. The value can be a fully qualified domain name, a NetBIOS name, or an IP address. Use the local computer name, use localhost, or use a dot (.) to specify the local computer. The local computer is the default. When the remote computer is in a different domain from the user, you must use a fully qualified domain name must be used. You can pipe a value for this parameter to the cmdlet.

Note: You cannot disconnect from the local host (the default connection to the local computer). However, if a separate connection is made to the local computer (for example, by using the computer name), you can remove that connection by using the Disconnect-WSMan cmdlet .

Required? false
Position? named
Default value localhost
Accept pipeline input? false
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# INPUTS
None
This cmdlet does not accept any input.

# OUTPUTS
None
This cmdlet does not generate any output.

# NOTES

# EXAMPLE 1

C:\PS>Disconnect-WSMan -computer server01

C:\PS> cd WSMan:
PS WSMan:\>
PS WSMan:\> dir

WSManConfig: Microsoft.WSMan.Management\WSMan::WSMan

ComputerName Type
------------ ----
localhost Container

# Description
-----------
This command deletes the connection to the remote server01 computer.

This cmdlet is generally used within the context of the WS-Management provider to disconnect from a remote computer, in this case the server01 computer. However, you can also use the Disconnect-WSMan cmdlet to remove connections to remote computers before you change to the WSMan provider. Those connections will not appear in the ComputerName list.

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkId=141439
Connect-WSMan
Disable-WSManCredSSP
Enable-WSManCredSSP
Get-WSManCredSSP
Get-WSManInstance
Invoke-WSManAction
New-WSManInstance
New-WSManSessionOption
Remove-WSManInstance
Set-WSManInstance
Set-WSManQuickConfig
Test-WSMan

C:\Windows>powershell get-help Get-WSManInstance -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Disconnects the client from the WinRM service on a remote computer.

HTTP: ... PS_Windows/en/Disconnect-WSMan.htm
0.249
14003

The Silver Aero Clock for Windows Desktops all OS!

 /

Activate file extension in the file-type column!

 /

Drag and Drop Problem when use Always Mouse Wheel drag feature!

 /

What is a cmd.exe?

 /

Include or exclude in Windows 8 / 8.1 / 10 compressed files when searching for files (. ZIP,. CAB, etc.)!

 /

Are the full versions of Software freeware on SoftwareOK?

 /

In der Windows 10 Eingabeaufforderung cmd.exe Transparenz aktivieren und anpassen!

 /

Save Images of Login Screen on Windows-10 (Lock, location)?

 /

Access to hidden options in Windows 10 and 8,1 Explorer, via mouse!

 /

Windows 10 mstsc, where is it stored?

 /

Find Advanced display Settings on Windows 10 and server!

 /

The desktop clock with glass texture Transparent as in Adobe Photoshop!

 /