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

Connect-VSBHvVirtualLab

In this article

    Short Description

    Connects an existing Hyper-V virtual lab.

    Applies to

    Platform: Hyper-V

    For VMware, run Connect-VSBVirtualLab.

    Product Edition: Enterprise, Enterprise Plus

    Syntax

    Connect-VSBHvVirtualLab [-VirtualLab] <CHvLabShortInfo> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    Find-VSBHvVirtualLab

    Detailed Description

    This cmdlet connects an existing Hyper-V 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

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    VirtualLab

    Specifies the virtual lab you want to connect to your Veeam Backup & Replication console.

    True

    1

    True (ByValue,
    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.

    Example 1

    This command connects a virtual lab named "Exchange VLab 01". The virtual lab to connect is obtained with Find-VSBHvVirtualLab by looking for the specific virtual lab by name on the server represented by the $server variable. The server object is obtained with Get-VBRServer and assigned to the variable beforehand.

    PS C:\PS> Find-VSBHvVirtualLab -Server $server -Name "Exchange VLab 01" | Connect-VSBHvVirtualLab

    Example 2

    This command connects a virtual lab represented by the $VLab01 variable. The virtual lab object is obtained with Find-VSBHvVirtualLab and assigned to the variable beforehand.

    PS C:\PS> Connect-VSBHvVirtualLab -VirtualLab $VLab01