Get-WBSchedule
Retrieves the current schedule for backups.
Get-WBSchedule
[-Policy] <WBPolicy>
[<CommonParameters>]
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.
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.
Specifies the WBPolicy object to display.
Type: | WBPolicy |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
WBPolicy
The Get-WBSchedule cmdlet queries a specified WBPolicy object.
Datetime []
The Get-WBSchedule cmdlet displays the list of Datetime objects in the WBPolicy object.