Get-WBSchedule
Gets the current schedule for backups in the backup policy (WBPolicy object).
Get-WBSchedule [-Policy] <WBPolicy> [<CommonParameters>]
The Get-WBSchedule cmdlet gets the current schedule for backups in the backup policy (WBPolicy object). Backups are run daily at the times specified in the schedule. To change the schedule, use the Set-WBSchedule cmdlet.
Specifies the backup policy (WBPolicy object) to display information for.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByPropertyName) |
Position? |
1 |
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.
- To use Windows Server Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.
C:\PS>Get-WBSchedule -Policy $policy
An array of Datetime objects in the WBPolicy object $policy.
Description
-----------
Gets the times backups are scheduled to run for WBPolicy object $policy.