Get-OBSchedule
Gets the OBSchedule object, which includes the days of the week and times of day to create daily backups, for the specified OBPolicy object.
Syntax
Default (Default)
Get-OBSchedule
[-Policy] <CBPolicy>
Description
The Get-OBSchedule cmdlet gets the current schedule for backups in the backup policy (OBPolicy object). Backups are run at the times specified in the schedule. To change the schedule, use the Set-OBSchedule cmdlet.
To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.
Examples
EXAMPLE 1
Get-OBPolicy | Get-OBSchedule
This example gets a schedule for backup, recovery, or backup and recovery.
Parameters
-Policy
Specifies the policy from which the schedule for backup is obtained.
Parameter properties
Type: | CBPolicy |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |