Connect-VSBVirtualLab (obsolete)

Short Description

Connects an existing VMware virtual lab.

Note

This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Connect-VBRViVirtualLabAdds VMs to Veeam Backup & Replication. cmdlet.

Platform: VMware

For Hyper-V, run the Connect-VSBHvVirtualLabConnects an existing Hyper-V virtual lab. This cmdlet is obsolete. The cmdlet still works but may not be supported in further versions. cmdlet.

Product Edition: Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Connect-VSBVirtualLab [[-VirtualLab] <CVirtualLabDescriptor>] [<CommonParameters>]

Detailed Description

This cmdlet connects an existing VMware virtual lab to Veeam Backup & Replication console.

When you add a new host to your Veeam Backup & Replication console, the virtual labs that are registered on it are not added automatically. Use this cmdlet to add the virtual labs to your Veeam Backup & Replication console.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

VirtualLab

Specifies the virtual lab you want to connect.

Accepts the CVirtualLabDescriptor object. To get this object, run the Find-VSBVirtualLabLooks for virtual labs created on the specified ESXi host. This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Connect-VBRViVirtualLab cmdlet. cmdlet.

CVirtualLabDescriptor

False

0

True (ByPropertyName, ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Connect-VSBVirtualLab (obsolete)Example 1. Connecting Virtual Lab [Using Pipeline]

This example shows how to connect the Exchange VLab 01 virtual lab to Veeam Backup & Replication.

$server = Get-VBRServer -Name "srv001"

Find-VSBVirtualLab -Server $server -Name "Exchange VLab 01" | Connect-VSBVirtualLab

Perform the following steps:

  1. Run the Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  2. Run the Find-VSBVirtualLabLooks for virtual labs created on the specified ESXi host. This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Connect-VBRViVirtualLab cmdlet. cmdlet. Set the $server variable as the Server parameter value. Specify the Name parameter value.
  3. Pipe the cmdlet output to the Connect-VSBVirtualLab cmdlet.

Connect-VSBVirtualLab (obsolete)Example 2. Connecting Virtual Lab [Using Variable]

This example shows how to connect the Exchange VLab 01 virtual lab to Veeam Backup & Replication.

$server = Get-VBRServer -Name "ESXiHost"

$VLab01 = Find-VSBVirtualLab -Server $server -Name "Exchange VLab 01"

Connect-VSBVirtualLab -VirtualLab $VLab01

Perform the following steps:

  1. Run the Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify the Name parameter value. Save the result to the $server variable.
  2. Run the Find-VSBVirtualLabLooks for virtual labs created on the specified ESXi host. This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Connect-VBRViVirtualLab cmdlet. cmdlet. Set the $server variable as the Server parameter value. Specify the Name parameter value. Save the result to the $VLab01 variable.
  3. Run the Connect-VSBVirtualLab cmdlet. Set the $VLab01 variable as the VirtualLab parameter value.

Find-VSBVirtualLabLooks for virtual labs created on the specified ESXi host. This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Connect-VBRViVirtualLab cmdlet.

Page updated 2026-08-19

Page content applies to build 13.1.1.18