--- title: "Add-VSBVirtualLab (obsolete)" description: "This cmdlet creates a new VMware virtual lab." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/add-vsbvirtuallab.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Obsolete Cmdlets > Add-VSBVirtualLab (obsolete)" dateModified: "2026-08-19" --- # Add-VSBVirtualLab ## Short Description Creates a VMware virtual lab. ::: note This cmdlet is obsolete and not supported. Run the [`Add-VBRApplicationGroup`](add-vbrapplicationgroup.md) cmdlet instead. ::: **Platform**: VMware For Hyper-V, run the [`Add-VSBHvVirtualLab`](add-vsbhvvirtuallab.md) cmdlet. **Product Edition**: Enterprise, Enterprise Plus, Veeam Universal License ## Syntax ``` Add-VSBVirtualLab [[-Name] ] [[-Server] ] [[-Datastore] ] [-ProductionNetwork ] [] ``` ## Detailed Description This cmdlet creates a new VMware virtual lab. ## Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Datastore

Specifies the datastore on which redo logs for tested VMs should be stored.

Accepts the CViDatastoreItem object. To get this object, run the Find-VBRViDatastore cmdlet.

CViDatastoreItem

False

2

False

Name

Specifies the string with the name you want to assign to the virtual lab.

String

False

0

False

ProductionNetwork

Specifies the virtual switch connected to the production network.

Accepts the VBRViVirtualSwitch object. To get this object, run the Get-VBRViVirtualSwitch cmdlet.

VBRViVirtualSwitch

False

Named

False

Server

Specifies the ESXi host where the virtual lab should be created.

CHost

False

1

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### Creating Virtual Lab This example shows how to create a new virtual lab named `Exchange VLab 01`. ``` $server = Get-VBRServer -Name "esx05.tech.local" $datastore = Find-VBRViDatastore -Server $server Add-VSBVirtualLab -Name "Exchange VLab 01" -Server $server -Datastore $datastore ``` Perform the following steps: 1. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Specify the `Name` parameter. Save the result to the `$server` variable. 2. Run the [`Find-VBRViDatastore`](find-vbrvidatastore.md) cmdlet. Set the `$server` variable as the `Server` parameter value. Save the result to the `$datastore` variable. 3. Run the `Add-VSBVirtualLab` cmdlet. Specify the `Name` parameter. Set the `$server` variable as the `Server` parameter value. Set the `$datastore` variable as the `Datastore` parameter value. ::: ## Related Commands - [`Get-VBRServer`](get-vbrserver.md) - [`Find-VBRViDatastore`](find-vbrvidatastore.md) - [`Get-VBRViVirtualSwitch`](get-vbrvivirtualswitch.md)