Get-WssBackupSchedule

Gets the backup schedule from a scheduled backup policy.

Syntax

Get-WssBackupSchedule
   [-BackupPolicy] <ScheduledBackupPolicy>
   [<CommonParameters>]

Description

The Get-WssBackupSchedule cmdlet gets the backup schedule from a scheduled backup policy.

Examples

Example 1: Get a backup schedule from a scheduled backup policy

PS C:\>$ContosoBUPolicy25 = Get-WssBackupPolicy
PS C:\> Get-WssBackupSchedule -BackupPolicy $ContosoBUPolicy25

This example gets the backup schedule from a scheduled backup policy.

The first command gets the backup policy for the computer and stores the result in the $ContosoBUPolicy25 variable

The second command gets the backup schedule from the scheduled backup policy stored in $ContosoBUPolicy25$ContosoBUSched25.

Parameters

-BackupPolicy

Specifies the scheduled backup policy from which to get the schedule.

Type:ScheduledBackupPolicy
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Outputs

DateTime

This cmdlet returns a list of backup schedule times.