Remove-WBSystemState

Remove-WBSystemState

Removes the system state components from the backup policy.

Sintaxis

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

Descripción detallada

The Remove-WBSystemState cmdlet removes the system state components from a policy contained in the WBPolicy object. Depending on what the WBPolicy object includes, you may still backup some of the components that are part of the system state, but you may not be able to use the components in a system state recovery.

The WBPolicy object must be in edit mode. To put the WBPolicy object in edit mode for a policy that is the scheduled backup policy, use the Get-WBPolicy cmdlet with the Editable parameter. The New-WBPolicy cmdlet creates a new WBPolicy object that is already in edit mode.

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

Parámetros

-Policy<WBPolicy>

Specifies the backup policy WBPolicy object to update.

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

  • WBPolicy

    The Remove-WBSystemState cmdlet queries the WBPolicy object to determine whether the WBSystemState object is present. The cmdlet does nothing if the WBSystemState object is not already present. The cmdlet removes the WBSystemState object if it is present.

Salidas

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

  • None

Ejemplos

Example 1: Remove system state from the backup policy

This example removes the system state components from the WBPolicy object.

The first command stores the results of the Get-WBPolicy cmdlet in the variable named $Policy.

The second command removes system state components from the backup policy in the variable $Policy.

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

Temas relacionados

Add-WBSystemState

Get-WBPolicy

Get-WBSystemState