PowerCLI Reference

Disconnect-CIServer

Synopsis

This cmdlet disconnects the session from the specified cloud servers.

Syntax

Disconnect-CIServer [[-Server] <CIServer[]>] [-Force] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Connect-CIServer

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
ServerCIServer[]Specifies the cloud servers you want to disconnect from.falsetrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falsefalse
ForceSwitchParameterSpecifies that you want to remove all existing connections to the specified servers.falsefalse
InformationActionActionPreferencefalsefalse
InformationVariableStringfalsefalse
PipelineVariableStringfalsefalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falsefalse

Return Type

None

Notes

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.


Copyright © VMware, Inc. All rights reserved.