Get-WBSystemState

Windows Server 2012 R2 and Windows 8.1

Get-WBSystemState

Gets a Boolean value that indicates whether system state recovery was added to the backup policy.

Sintaxis

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




Descripción detallada

The Get-WBSystemState cmdlet gets a Boolean value that indicates whether the ability to perform system state recoveries along with the backups was added to the WBPolicy object. If the system state is not in the list of items to be backed up, use the Add-WBSystemState cmdlet to add it to the list.

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

Parámetros

-Policy<WBPolicy>

Specifies a WBPolicy object that contains the backup policy to display.


Alias

ninguno

¿Requerido?

true

¿Posición?

1

Valor predeterminado

ninguno

¿Aceptar canalización?

True (ByValue)

¿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 (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

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

  • WBPolicy

    The Get-WBSystemState cmdlet queries the WBPolicy object for the backup policy.



Salidas

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

  • boolean

    The Get-WBSystemState cmdlet displays a Boolean value to indicate whether the system state is included in the WBPolicy object.


Ejemplos

Example 1: Get the system state setting from the backup

This example displays a Boolean value that indicates whether the system state setting was added to the WBPolicy object $Policy. The system state setting enables you to use the backups to perform system state recoveries.

The first command stores the result of the Get-WBPolicy cmdlet to the variable named $Policy

The second command displays the result of the Get-WBSystemState cmdlet using the variable named $Policy.


PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBSystemState -Policy $Policy

Temas relacionados

Adiciones de comunidad

AGREGAR
Mostrar: