Disable-EmcReplicaCopyImageAccess

Disables a replica copy image access so that it is not available for mounting, and replication changes are again propagated to the copy.

 

Syntax

Disable-EmcReplicaCopyImageAccess -Copy <ReplicaCopy> [-Force] [-Silent] [-WhatIf] [-Confirm] [<CommonParameters>]

 

Parameters

-Copy <ReplicaCopy>

Attributes: Required, Position: Named

The replica copy for which image access will be disabled.

 

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

 

<CommonParameters>

This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.

 

Example

C:\PS>$service = Get-EmcReplicationService -ID *60*

C:\PS>$cluster = Get-EmcReplicationServiceCluster -ReplicationService $service

C:\PS>$copy = Get-EmcReplicaCopy -ReplicationServiceCluster $cluster -Role RemoteCopy -ID RP_PS_TEST_CR

C:\PS>Disable-EmcReplicaCopyImageAccess -Copy $copy

This example disables the image access for a replica copy.