Disconnects cluster systems.
Syntax
Disconnect-EmcClusterSystem [[-Id] <String>] [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]
Disconnect-EmcClusterSystem [-Force] [-Silent] [-WhatIf] [-Confirm] [-System <IClusterSystem>] [<CommonParameters>]
Parameters
-ID <String>
Attributes: Optional, Position: 1
Specifies the cluster name, IP address, or global ID. Wildcards are permitted. It is a positional parameter (position = 1).
-Force <SwitchParameter>
Attributes: Optional, Position: named
Allows the cmdlet to continue without asking for user confirmation.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
-WhatIf <SwitchParameter>
Attributes: Optional, Position: named
Shows what would happen if the cmdlet runs. The cmdlet is not run.
-Confirm <SwitchParameter>
Attributes: Optional, Position: named
Prompts you for confirmation before executing the command.
-System <IClusterSystem>
Attributes: Optional, Position: named
Specifies the ESI cluster system object. You can add a cluster system object to ESI by using the Get-EmcClusterSystemCredential and Connect-EmcSystem cmdlets. You can get a cluster system object by using the Get-EmcClusterSystem cmdlet.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>$cBlob = Get-EmcClusterSystemCredential
C:\PS>$c = $cBlob | Connect-EmcSystem
C:\PS>Disconnect-EmcClusterSystem
This example disconnects connected cluster systems with user confirmation.
---------- Example 2 ----------
C:\PS>$cBlob = Get-EmcClusterSystemCredential
C:\PS>$c = $cBlob | Connect-EmcSystem
C:\PS>Disconnect-EmcClusterSystem -System $c -Confirm
This example disconnects a specified cluster system.
---------- Example 3 ----------
C:\PS>Disconnect-EmcClusterSystem -Id mycluster*
C:\PS>Disconnect-EmcClusterSystem -Id 10.x.y.*
C:\PS>Disconnect-EmcClusterSystem 2cc75087-8ddf*
This example disconnects a cluster system based on the specified cluster name or IP address or global ID (accepts wild card). Because the ID parameter is positional, you can omit the name.
---------- Example 4 ----------
C:\PS>$cBlob = Get-EmcClusterSystemCredential
C:\PS>$c = $cBlob | Connect-EmcSystem
C:\PS>Disconnect-EmcClusterSystem -System $c -Force
This example disconnects a selected cluster system without asking for user confirmation.
---------- Example 5 ----------
C:\PS>$cBlob = Get-EmcClusterSystemCredential
C:\PS>$c = $cBlob | Connect-EmcSystem
C:\PS>Disconnect-EmcClusterSystem -System $c
This example disconnects a specified cluster system.