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.

구문

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>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • WBPolicy

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



출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • 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

관련 항목

커뮤니티 추가 항목

추가
표시: