Share via


Dismount-DPMRecoveryPoint

Dismounts the replica or recovery point VHD of a data source.

Syntax

Default (Default)

Dismount-DPMRecoveryPoint
    [-Datasource] <Datasource>
    [[-RecoveryPoint] <RecoverySource>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Dismount-DPMRecoveryPoint cmdlet dismounts a previously mounted replica or recovery point VHD of the specified data source. Keeping the VHDs mounted can result in backup job failures.

Examples

Example 1: Dismount a replica VHD

PS C:\>$ProtectionGroup = Get-DPMProtectionGroup
PS C:\> $DataSource = Get-DPMDatasource -ProtectionGroup $ProtectionGroup[0]
PS C:\> Dismount-DPMRecoveryPoint -Datasource $DataSource

The first command uses the Get-DPMProtectionGroup cmdlet to get the protection groups on the Data Protection Manager (DPM) server, and then stores them in the $ProtectionGroup variable.

The second command uses the Get-DPMDatasource cmdlet to get the data sources in the first protection group of the $ProtectionGroup array. The command stores the data sources in the $DataSource variable.

The third command dismounts the replica VHD of the first data source in the $DataSource array.

Example 2: Dismount a recovery point VHD

PS C:\>$ProtectionGroup = Get-DPMProtectionGroup
PS C:\> $DataSource = Get-DPMDatasource -ProtectionGroup $ProtectionGroup[0]
PS C:\> $RecoveryPoints = Get-DPMRecoveryPoint -Datasource $Datasource[0]
PS C:\> Dismount-DPMRecoveryPoint -Datasource $DataSource[0] -RecoveryPoint $RecoveryPoints[0]

The first command uses the Get-DPMProtectionGroup cmdlet to get the protection groups on the Data Protection Manager (DPM) server, and then stores them in the $ProtectionGroup variable.

The second command uses the Get-DPMDatasource cmdlet to get the data sources in the first protection group in the $ProtectionGroup array. The command stores the data sources in the $DataSource variable.

The third command uses the Get-DPMRecoveryPoint cmdlet to get the recovery points of the first data source in the $DataSource array, and then stores them in the $RecoveryPoints variable.

The fourth command dismounts the VHD corresponding to the first recovery point in the $RecoveryPoints array.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Datasource

Specifies the data source whose replica or recovery point VHD you want to dismount.

Parameter properties

Type:Datasource
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-RecoveryPoint

Specifies a recovery point of the data source. If this parameter is specified, the VHD corresponding to this recovery point is dismounted.

Parameter properties

Type:RecoverySource
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.