Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Get-WBSchedule

Last Updated: 4/3/2017

SYNOPSIS

Gets the current schedule for backups.

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.

PARAMETERS

-Policy

Specifies the WBPolicy object to display.

Type: WBPolicy
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

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

INPUTS

WBPolicy

This cmdlet queries a specified WBPolicy object.

OUTPUTS

Datetime []

This cmdlet returns a list of Datetime objects in the WBPolicy object.

NOTES

New-WBPolicy

Set-WBSchedule

© 2017 Microsoft