Edit

Share via


Get-WBBareMetalRecovery

Gets a Boolean value that indicates whether or not a backup policy can perform bare metal recoveries from backups.

Syntax

Default (Default)

Get-WBBareMetalRecovery
    [-Policy] <WBPolicy>
    [<CommonParameters>]

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 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 this cmdlet, you must be a member of the Administrators group or Backup Operators group.

Examples

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

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

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.

Parameters

-Policy

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

Parameter properties

Type:WBPolicy
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Windows.ServerBackup.Commands.WBPolicy

Outputs

Object