Get-OBSchedule
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
Parameter Set: Default
Get-OBSchedule [-Policy] <CBPolicy> [ <CommonParameters>]
Detailed 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.
Parameters
-Policy<CBPolicy>
Specifies the policy from which the schedule for backup is obtained.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
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.
- None
Outputs
The output type is the type of the objects that the cmdlet emits.
- Microsoft.Internal.CloudBackup.Commands.OBSchedule
Examples
EXAMPLE 1
This example gets a schedule for backup, recovery, or backup and recovery.
PS C:\> Get-OBPolicy | Get-OBSchedule