Get-WBSystemState

Get-WBSystemState

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

構文

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

詳細説明

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.

パラメーター

-Policy<WBPolicy>

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

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • WBPolicy

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

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • boolean

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

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

関連トピック

Add-WBSystemState

New-WBPolicy

Remove-WBSystemState