Remove-WssBackupSchedule
Remove-WssBackupSchedule
Removes a backup schedule from a scheduled backup policy.
Syntax
Parameter Set: Default
Remove-WssBackupSchedule [-BackupPolicy] <ScheduledBackupPolicy> [-BackupTime] <DateTime> [ <CommonParameters>]
Detailed 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.
Parameters
-BackupPolicy<ScheduledBackupPolicy>
Specifies the scheduled backup policy to edit.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-BackupTime<DateTime>
Specifies the date and time of the backup to remove from the schedule.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
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 scheduled backup from a policy
This command removes the scheduled backup at 5:00 A.M. daily from the policy that is stored in the variable named $ContosoBUPolicy25.
PS C:\> Remove-WssBackupSchedule -BackupPolicy $ContosoBUPolicy25 -Schedule 5:00