Disconnects storage systems.
Syntax
Disconnect-EmcStorageSystem [[-Id] <String>] [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]
Disconnect-EmcStorageSystem [-Force] [-Silent] [-WhatIf] [-Confirm] [-System <IStorageSystem>] [<CommonParameters>]
Parameters
-Id <String>
Attributes: Optional, Position: 1
Specifies the storage system name, user-friendly name, or global ID. Wildcards are permitted. It is a positional parameter (position = 1).
-Force <SwitchParameter>
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
<IStorageSystem>
Attributes: Optional, Position: named
Specifies the ESI storage system object. You can add a storage system object to ESI by using the Get-EmcStorageSystemCredential and Connect-EmcSystem cmdlets. You can get a storage system object by using the Get-EmcStorageSystem cmdlet. The object can be a block or file storage system.
<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>$sBlob =
Get-EmcStorageSystemCredential
C:\PS>$s = $sBlob |
Connect-EmcSystem
C:\PS>Disconnect-EmcStorageSystem
C:\PS>get-emcstoragesystem |
Disconnect-EmcStorageSystem
This example disconnects the connected storage systems.
---------- Example 2 ----------
C:\PS>$sBlob =
Get-EmcStorageSystemCredential
C:\PS>$s = $sBlob |
Connect-EmcSystem
C:\PS>Disconnect-EmcStorageSystem -System $s
-Confirm
C:\PS>Disconnect-EmcStorageSystem -System
$s
C:\PS>Disconnect-EmcStorageSystem -System $s
-Force
C:\PS>$s |
Disconnect-EmcStorageSystem
C:\PS>$s | Disconnect-EmcStorageSystem
-Force
This example disconnects the specified storage system.
---------- Example 3 ----------
C:\PS>Disconnect-EmcStorageSystem *
C:\PS>Disconnect-EmcStorageSystem *
-Force
C:\PS>Disconnect-EmcStorageSystem id
*
C:\PS>Disconnect-EmcStorageSystem -id
mystorage*
C:\PS>Disconnect-EmcStorageSystem -id d456*
-Confirm
This example disconnects the storage systems as specified by the storage system name, user-friendly name, or global ID (accepts wild cards) with user confirmation. Because the ID parameter is positional, you can omit the name.