Get-WBPolicy

Get-WBPolicy

Retrieves the current backup policy for the computer.

Sintaxis

Parameter Set: Default
Get-WBPolicy [-Editable] [ <CommonParameters>]

Descripción detallada

The Get-WBPolicy cmdlet retrieves the backup policy object for the computer. Use the Editable parameter to return the policy information in edit mode.

To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.

Parámetros

-Editable

Indicates that the cmdlet returns a current backup policy in edit mode.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

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

  • Editable

    This cmdlet uses the Editable parameter to set the WBPolicy object in edit mode.

Salidas

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

  • WBPolicy

    This cmdlet displays the WBPolicy object. The cmdlet returns a null value if no backup policy is set.

Notas

  • If you use the Editable parameter to make changes, set the updated policy as the current policy by using the Set-WBPolicy cmdlet.

Ejemplos

Example 1: Get a current backup policy

This command gets information about the backup policy object. The information includes all the settings for the backup policy, such as what items to back up, when to run backups, and where to store backups.

PS C:\> Get-WBPolicy

Example 2: Get a current backup policy in edit mode

This command gets information about the backup policy object, and it makes the policy editable.

PS C:\> Get-WBPolicy -Editable

Temas relacionados

New-WBPolicy

Remove-WBPolicy

Set-WBPolicy