Disconnect-HCXServer
This cmdlet closes the connection to one or more HCX servers.
Syntax
[-Force]
[-Server <CisServer[]>]
[CommonParameters]
[-Server <CisServer[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
SwitchParameter | named |
|
Indicates that you want to close all active connections to the specified server and disconnect from it. | optional |
|
CisServer[] | named |
|
Specifies the HCX servers you want to disconnect from. |
Output
Examples
Example 1
$server = Connect-HCXServer -Server 'server_name' -User 'user@domain' -Password 'user_password'
Disconnect-HCXServer $server -Confirm:$false
Disconnects the specified HCX server without asking for confirmation.
Example 2
Connect-HCXServer -Server 'server_name' -User 'user@domain' -Password 'user_password'
Connect-HCXServer -Server 'server2_name' -User 'user@domain' -Password 'user_password'
Disconnect-HCXServer * -Confirm:$false
Disconnects the specified HCX server without asking for confirmation.
Related Commands
HCXServer
This cmdlet establishes a connection to a HCX server.
This cmdlet closes the connection to one or more HCX servers.