Remove-WssBackupSchedule

Removes a backup schedule from a scheduled backup policy.

Syntax

Remove-WssBackupSchedule
      [-BackupPolicy] <ScheduledBackupPolicy>
      [-BackupTime] <DateTime>
      [<CommonParameters>]

Description

The Remove-WssBackupSchedule cmdlet removes a date and time from a scheduled backup policy. This action removes the backup that is scheduled for that date and time from the policy.

Examples

Example 1: Remove a scheduled backup from a policy

PS C:\> Remove-WssBackupSchedule -BackupPolicy $ContosoBUPolicy25 -Schedule 5:00

This command removes the scheduled backup at 5:00 A.M. daily from the policy that is stored in the variable named $ContosoBUPolicy25.

Parameters

-BackupPolicy

Specifies the scheduled backup policy to edit.

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

-BackupTime

Specifies the date and time of the backup to remove from the schedule.

Type:DateTime
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.ScheduledBackupPolicy

This cmdlet generates the BackupPolicy parameter value.