Disconnect-HCXServer

This cmdlet closes the connection to one or more HCX servers.

Syntax

[-Force]
[-Server  <CisServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Force
SwitchParameter named Indicates that you want to close all active connections to the specified server and disconnect from it.
optional
Server
CisServer[] named
  • pipeline
  • 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

    Feedback

    Was this page helpful?