Get-WssBackupPolicy

Gets the current scheduled backup policy.

Syntax

Get-WssBackupPolicy []

Description

The Get-WssBackupPolicy cmdlet gets the current scheduled backup policy. The cmdlet returns an empty scheduled backup policy if no backup policy is configured.

Examples

Example 1 Get the current scheduled backup policy

PS C:\> $ContosoBUPol12 = Get-WssBackupPolicy

This command gets the currently scheduled backup policy and stores it in the $ContosoBUPol12 variable.

Outputs

Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.ScheduledBackupPolicy

This cmdlet returns the server backup policy that specifies backup options such as backup targets, backup volume and schedule time.