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

Add-VSBHvVirtualLab

In this article

    Short Description

    Creates a Hyper-V virtual lab.

    Applies to

    Platform: Hyper-V

    For VMware, run Add-VSBVirtualLab.

    Product Edition: Enterprise, Enterprise Plus

    Syntax

    Add-VSBHvVirtualLab -Name <String> -Server <CHost> -Folder <String> [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

    Related Commands

    Get-VBRServer

    Detailed Description

    This cmdlet creates a new Hyper-V virtual lab.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    Name

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

    True

    Named

    False

    False

    Server

    Specifies the Hyper-V host where the virtual lab should be created.

    True

    Named

    False

    False

    Folder

    Specifies the path to the folder where the redo log files of the virtual lab will be stored.

    True

    Named

    False

    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

    This command creates a new virtual lab named "Exchange VLab 01". The server where the virtual lab will be located is obtained with Get-VBRServer and assigned to the $server variable beforehand. The folder path to store the redo files is c:\VirtualLabs.

    PS C:\PS> Add-VSBHvVirtualLab -Name "Exchange VLab 01" -Server $server -Folder "c:\VirtualLabs"