Disconnect-CIServer

This cmdlet disconnects the session from the specified cloud servers. If no servers are provided to the Server parameter, the cmdlet disconnects the default servers.

Syntax

[-Force]
[-Server  <CIServer[]>]
[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 servers.
optional
Server
CIServer[] named
  • wildcards
  • pipeline
  • Specifies the cloud servers you want to disconnect from.

    Output

    Examples


    Example 1

    Disconnect-CIServer

    Disconnects all default servers.

    Example 2

    Disconnect-CIServer * -Confirm:$false

    Disconnects all default servers without asking for confirmation.

    Example 3

    Disconnect-CIServer $server1 -Force -Confirm:$false

    Disconnects all server connections stored in $server1.

    Example 4

    $server1,$server2 | Disconnect-CIServer -Force -Confirm:$false

    Disconnects all server connections stored in the $server1 and $server2 variables.

    Related Commands

    Feedback

    Was this page helpful?