Remove-WssBackupSchedule

Remove-WssBackupSchedule

Removes a backup schedule from a scheduled backup policy.

Sintaxis

Parameter Set: Default
Remove-WssBackupSchedule [-BackupPolicy] <ScheduledBackupPolicy> [-BackupTime] <DateTime> [ <CommonParameters>]

Descripción detallada

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.

Parámetros

-BackupPolicy<ScheduledBackupPolicy>

Specifies the scheduled backup policy to edit.

Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

-BackupTime<DateTime>

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

Alias

ninguno

¿Requerido?

true

¿Posición?

2

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByPropertyName)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.ScheduledBackupPolicy

    This cmdlet generates the BackupPolicy parameter value.

Ejemplos

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

Temas relacionados

Get-WssBackupSchedule

Add-WssBackupSchedule