Get-WssBackupPolicy

Get-WssBackupPolicy

Gets the current scheduled backup policy.

Sintaxis

Get-WssBackupPolicy [ <CommonParameters>]

Descripción detallada

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

Parámetros

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

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

Ejemplos

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

Temas relacionados

Disable-WssBackupPolicy

Resume-WssBackupPolicy

Set-WssBackupPolicy

Suspend-WssBackupPolicy