Get-WBSchedule
Get-WBSchedule
Retrieves the current schedule for backups.
Sintaxis
Parameter Set: Default
Get-WBSchedule [-Policy] <WBPolicy> [ <CommonParameters>]
Descripción detallada
The Get-WBSchedule cmdlet retrieves the current schedule for backups in the WBPolicy object. Backups run daily at the times specified in the schedule. To change the schedule, use the Set-WBSchedule cmdlet.
To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.
Parámetros
-Policy<WBPolicy>
Specifies the WBPolicy object to display.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
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.
WBPolicy
The Get-WBSchedule cmdlet queries a specified WBPolicy object.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Datetime []
The Get-WBSchedule cmdlet displays the list of Datetime objects in the WBPolicy object.
Ejemplos
Example 1: Get the scheduled backup times
This example gets the scheduled backup times from the WBPolicy object.
The first command stores the result of the Get-WBPolicy in the variable named $Policy.
The second command gets the backup schedule from the backup policy object.
PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBSchedule -Policy $Policy