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

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.

Type:CBPolicy
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Inputs

None

Outputs

Microsoft.Internal.CloudBackup.Commands.OBSchedule