This is an archive version of the document. To get the most up-to-date information, see the current version.

Add-VBRDiscoveredComputerRecoveryMedia

Short Description

Creates Veeam Recovery Media.

Product Edition: Community, Standard, Enterprise, Enterprise Plus

Syntax

Add-VBRDiscoveredComputerRecoveryMedia -DiscoveredComputer <VBRDiscoveredComputer> -RecoveryMediaTarget <VBRRecoveryMediaTarget> [-Force]  [<CommonParameters>]

Detailed Description

This cmdlet creates Veeam Recovery — a recovery image of your computer. You can create Veeam Recovery Media on removable storage devices, optical disks or save it locally in the ISO file format.

Add-VBRDiscoveredComputerRecoveryMedia Note:

To create Veeam Recovery Media for a protected computer, you must have a full backup of this computer. This backup must contain an OS of this computer.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Discovered
Computer

Specifies the discovered computer for which you want to create Veeam Recovery Media.

NOTE: You can create Veeam Recovery Media only for discovered computers.

Accepts the VBRDiscoveredComputer type.

True

Named

True (ByValue
ByProperty
Name)

False

RecoveryMedia
Target

Specifies a storage device, optical disk or the ISO file path for creating Veeam Recovery Media.

Accepts the VBRRecoveryMediaTarget type.

True

Named

True (ByProperty
Name)

False

Force

If set, the cmdlet will create Veeam Recovery Media even if any of the following occurs:

  • The target removable device needs to be formatted.
  • The target optical disk needs to be erased.
  • The ISO file under the specified path already exists.
  • There is not enough space on the target removable device or optical disk.

False

Named

True (ByProperty
Name)

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

VBRProtectionGroup

Example 1

This example shows how to save Veeam Recovery Media in the ISO file format.

You will need to perform the following steps:

  1. Run New-VBRRecoveryMediaISOTarget to create the path for the ISO file. Save the result to the $isopath variable.
  2. Run Get-VBRDiscoveredComputer. Use the Where-Object method to get the computer for which you want to create Veeam Recovery Media. Save the result to the $computer variable.
  3. Run Add-VBRDiscoveredComputerRecoveryMedia with the $isopath and $computer variables to save Veeam Recovery Media in the ISO file format.

$isopath = New-VBRRecoveryMediaISOTarget -Path "c:\image.iso"

$computer = Get-VBRDiscoveredComputer | Where {$_.name -eq "support.east.local"}

Add-VBRDiscoveredComputerRecoveryMedia -DiscoveredComputer $computer -RecoveryMediaTarget $isopath

Example 2

This example shows how to create Veeam Recovery Media on a removable storage device.

You will need to perform the following steps:

  1. Run Get-VBRDiscoveredComputer with the Where-Object method to get the computer for which you want to create Veeam Recovery Media. Save the result to the $computer variable.
  2. Run Get-VBRRecoveryMediaTarget with the Type parameter and the Where-Object method to get the removable storage device where you want to create Veeam Recovery Media. Save the result to the $removable variable.
  3. Run Add-VBRDiscoveredComputerRecoveryMedia with the $computer and $removable variables.

$computer = Get-VBRDiscoveredComputer | Where {$_.name -eq "support.east.local"}

$removable = Get-VBRRecoveryMediaTarget -Type RemovableDevice | Where {$_.Description -eq "RECOVERY (F:)"}

Add-VBRDiscoveredComputerRecoveryMedia -DiscoveredComputer $computer -RecoveryMediaTarget $removable

Related Commands

Get-VBRDiscoveredComputer

Get-VBRRecoveryMediaTarget

New-VBRRecoveryMediaISOTarget