Disconnects replication services.
Syntax
Disconnect-EmcReplicationService [[-Id] <String>] [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]
Disconnect-EmcReplicationService [-Force] [-Silent] [-WhatIf] [-Confirm] [-System <IReplicationService>] [<CommonParameters>]
Parameters
-Id <String>
Attributes: Optional, Position: 1
Specifies the friendly name, service name, or global ID of the replication service. Wildcards are permitted.
-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 <IReplicationService>
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>Disconnect-EmcReplicationService -ID *60*
This example disconnects ID *60* from a replication service.
-------------- Example 2 --------------
C:\PS>$service = Get-EmcReplicationService -ID *60*
Disconnect-EmcReplicationService -System $service
This example disconnects a system object from a replication service.