Get-WssBackupSchedule

Get-WssBackupSchedule

Gets the backup schedule from a scheduled backup policy.

Syntax

Parameter Set: Default
Get-WssBackupSchedule [-BackupPolicy] <ScheduledBackupPolicy> [ <CommonParameters>]

Detailed Description

The Get-WssBackupSchedule cmdlet gets the backup schedule from a scheduled backup policy.

Parameters

-BackupPolicy<ScheduledBackupPolicy>

Specifies the scheduled backup policy from which to get the schedule.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get a backup schedule from a scheduled backup policy

This example gets the backup schedule from a scheduled backup policy.

The first command gets the backup policy for the computer and stores the result in the $ContosoBUPolicy25 variable

The second command gets the backup schedule from the scheduled backup policy stored in $ContosoBUPolicy25$ContosoBUSched25.

PS C:\> $ContosoBUPolicy25 = Get-WssBackupPolicy
PS C:\> Get-WssBackupSchedule -BackupPolicy $ContosoBUPolicy25

Get-WssBackupSchedule

Remove-WssBackupSchedule