Disconnect-Vcs

This cmdlet closes the connection to the servers specified by the Server parameter. When no servers are specified and if there is only one connected server in the $defaultVcsServers variable, this server is disconnected. If there is no connected server, the cmdlet throws a non-terminating error.

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
optional
Force
SwitchParameter named Specifies that you want to remove all existing connections to the specified VMware Cloud on AWS servers.
optional
Server
CisServer[] named
  • wildcards
  • pipeline
  • Specifies the VMware Cloud on AWS servers you want to disconnect from.

    Output

    Examples


    Example 1

    $connection = ConnectVcs -RefreshToken $myRefreshToken
    Disconnect-Vcs -Server $connection -Confirm:$false

    Disconnects the specified VMware Cloud on AWS server without asking for confirmation.

    Example 2

    $connection = ConnectVcs -RefreshToken $myRefreshToken
    Disconnect-Vcs -Server '*' -Force -Confirm:$false

    Forces the disconnect operation for all connected VMware Cloud on AWS servers without asking for confirmation.

    Related Commands

    Feedback

    Was this page helpful?