Get-DPMBackupWindow
Gets the backup window settings for a protection group.
Syntax
Default (Default)
Get-DPMBackupWindow
[-ProtectionGroup] <ProtectionGroup>
[<CommonParameters>]
Description
The Get-DPMBackupWindow cmdlet gets the backup window settings for a System Center - Data Protection Manager (DPM) protection group. For more information about backup windows, see the Set-DPMBackupWindow cmdlet.
Examples
Example 1: Get backup window settings
PS C:\>$PGroup = Get-DPMProtectionGroup | Where {$_.FriendlyName -like "*ContosoPG*"}
PS C:\> Get-DPMBackupWindow $PGroup
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.
Parameters
-ProtectionGroup
Specifies a protection group for which this cmdlet gets settings. To obtain a ProtectionGroup object, use the Get-DPMProtectionGroup cmdlet.
Parameter properties
Type: | ProtectionGroup |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
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.