Поделиться через


Remove-DPMPGSet

Remove-DPMPGSet

Deletes a protection group set.

Syntax

Parameter Set: Default
Remove-DPMPGSet [-PGSet] <PGSet> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-DPMPGSet cmdlet deletes a System Center 2012 – Data Protection Manager (DPM) protection group set. A DPM protection group set is a collection of protection groups that you collocate on the same tape.

Parameters

-PGSet<PGSet>

Specifies the protection group set that this cmdlet deletes. To obtain a protection group set object, use the Get-DPMPGSet cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove a protection group set

The first command uses the Get-DPMPGSet cmdlet to get the protection group sets for the specified server, and then stores them in the $PGSet variable.

The second command specifies the first member of $PGSet by using standard array notation. The command removes that protection group set.

PS C:\> $PGSet = Get-DPMPGSet -DPMServerName "DPMServer07"
PS C:\> Remove-DPMPGSet -PGSet $PGSet[0]

Get-DPMPGSet

New-DPMPGSet

Update-DPMPGSet