Get-WssBackupPolicy

Get-WssBackupPolicy

Gets the current scheduled backup policy.

Syntax

Get-WssBackupPolicy [ <CommonParameters>]

Detailed 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.

Parameters

<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 the current scheduled backup policy

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

PS C:\> $ContosoBUPol12 = Get-WssBackupPolicy

Disable-WssBackupPolicy

Resume-WssBackupPolicy

Set-WssBackupPolicy

Suspend-WssBackupPolicy