Get-WBSchedule

Get-WBSchedule

Gets the current schedule for backups in the backup policy (WBPolicy object).

Syntax

Get-WBSchedule [-Policy] <WBPolicy> [<CommonParameters>]

Detailed Description

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.

Parameters

-Policy <WBPolicy>

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

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

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.

Notes

  • To use Windows Server Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.

Examples

EXAMPLE 1

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.

See Also

Reference

New-WBPolicy
Set-WBSchedule