Get-WBSchedule
Syntax
Get-WBSchedule
[-Policy] <WBPolicy>
[<CommonParameters>]
Description
The Get-WBSchedule cmdlet gets 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.
Examples
Example 1: Get the scheduled backup times
PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBSchedule -Policy $Policy
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.
Required Parameters
Specifies the WBPolicy object to display.
Type: | WBPolicy |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Inputs
WBPolicy
This cmdlet queries a specified WBPolicy object.
Outputs
Datetime []
This cmdlet returns a list of Datetime objects in the WBPolicy object.