Get-WBBareMetalRecovery

Get-WBBareMetalRecovery

Indicates whether or not a backup policy can perform bare metal recoveries from backups.

Syntax

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

Detailed Description

The Get-WBBareMetalRecovery cmdlet gets a Boolean value that indicates whether or not a WBPolicy object that contains a backup policy can perform bare metal recoveries from backups. A bare metal recovery is the process of rebuilding a computer after a catastrophic failure. The recovery process backs up the system volume and master boot record by copying the entire volume and using Volume Shadow Copy Service (VSS) writers to ensure that all applications are in a consistent state for the copy. For more information about bare metal recovery, see Backup for Bare Metal Recovery (https://technet.microsoft.com/en-us/library/bb795820.aspx) on TechNet.

If a policy does not include the ability to perform bare metal recoveries from backups, use the Add-WBBareMetalRecovery cmdlet to add this ability.

To use Windows Server® 2012 Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.

Parameters

-Policy<WBPolicy>

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

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • WBPolicy

    The Get-WBBareMetalRecovery cmdlet queries a WBPolicy object that contains a backup policy to determine whether the server can use backups that use that policy for bare metal recovery.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Boolean

    The Get-WBBareMetalRecovery cmdlet displays a Boolean value to indicate whether the server can run backups that use a specified policy for bare metal recovery.

Examples

Example 1: Determine whether a backup policy includes bare metal recovery

This command gets a Boolean value that indicates whether bare metal recovery is set in the WBPolicy object and stores this value in the variable named $Policy.

PS C:\> Get-WBBareMetalRecovery -Policy $Policy

Add-WBBareMetalRecovery

Remove-WBBareMetalRecovery