powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Disconnect-CIServer



NAME
Disconnect-CIServer

SYNOPSIS
Disconnects from the specified cloud servers.

SYNTAX
Disconnect-CIServer [[-Server] ] [-Force] [-WhatIf] [-Confirm] []


DESCRIPTION
Disconnects from the specified cloud servers. If no servers are provided to the Server parameter the cmdlet disconn
ects the default servers.


PARAMETERS
-Server
Specify the cloud servers you want to disconnect from.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Force
Specify that you want to remove all existing connections to the specified servers.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- Example 1 --------------

C:\PS>Disconnect-CIServer


Disconnects all default servers.





-------------- Example 2 --------------

C:\PS>Disconnect-CIServer * -Confirm:$false


Disconnects all default servers without asking for confirmation.





-------------- Example 3 --------------

C:\PS>Disconnect-CIServer $server1 -Force -Confirm:$false


Disconnects all server connections stored in $server1.





-------------- Example 4 --------------

C:\PS>$server1,$server2 | Disconnect-CIServer -Force -Confirm:$false


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






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Disconnect-CIServer.html
Connect-CIServer