Syntax
Disconnect-PIServer [[-Server] <PIServer[]>] [-User <String[]>] [-Force] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet closes the connection to the vCloud Air servers specified by the -Server and -User parameters.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Server | PIServer[] | Specifies the vCloud Air servers you want to disconnect from. | false | true (ByValue) | |
Confirm | SwitchParameter | If 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. | false | false | |
Force | SwitchParameter | Specifies that you want to remove all existing connections to the specified servers. | false | false | |
InformationAction | ActionPreference | false | false | ||
InformationVariable | String | false | false | ||
PipelineVariable | String | false | false | ||
User | String[] | Specifies the user you want to disconnect from vCloud Air servers. | false | false | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false |
Return Type
NoneNotes
Examples
-------------- Example 1 --------------
$myConnection = Connect-PIServer -User '[email protected]' -Password 'user_password' Disconnect-PIServer $myConnection -Confirm:$false
Disconnects the specified vCloud Air connection without asking for confirmation.