共用方式為


Get-DPMBackupWindow

Get-DPMBackupWindow

Gets the backup window settings for a protection group.

Syntax

Parameter Set: Default
Get-DPMBackupWindow [-ProtectionGroup] <ProtectionGroup> [ <CommonParameters>]

Detailed Description

The Get-DPMBackupWindow cmdlet gets the backup window settings for a System Center 2012 – Data Protection Manager (DPM) protection group. For more information about backup windows, see the Set-DPMBackupWindow cmdlet.

Parameters

-ProtectionGroup<ProtectionGroup>

Specifies a protection group for which this cmdlet gets settings. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

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: Get backup window settings

The first command gets protection groups. This command passes the results to the Where-Object cmdlet. That cmdlet drops all results except those that match the specified friendly name. For more information, type Get-Help Where-Object. The command stores the protection group in the $PGroup variable.

The second command gets settings for the backup window of the protection group stored in $PGroup.

PS C:\> $PGroup = Get-DPMProtectionGroup | Where {$_.FriendlyName -like "*ContosoPG*"}
PS C:\> Get-DPMBackupWindow $PGroup

Get-DPMProtectionGroup

Set-DPMBackupWindow