Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Find-VSBHvVirtualLab

Short Description

Looks for virtual labs created on the specified Hyper-V host.

Applies to

Platform: Hyper-V

For VMware, run Find-VSBVirtualLab.

Product Edition: Enterprise, Enterprise Plus

Syntax

Find-VSBVirtualLab [-Server] <CHost> [-Name <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

This cmdlet returns virtual labs created on the specified Hyper-V host, both registered in Veeam Backup & Replication and not.

You can get the list of all virtual labs on the specified Hyper-V host or look for instances directly by name.

Run Connect-VSBHvVirtualLab to add the unregistered virtual labs to Veeam Backup & Replication.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Server

Specifies the Hyper-V host. The cmdlet will return virtual labs created on this host.

True

1

True (ByValue,
ByProperty
Name)

False

Name

Specifies the array of names of the virtual labs. The cmdlet will return virtual labs with these names.

False

Named

False

True

<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

CHvSbVirtualLab

Example 1

This command looks for the list of all virtual labs created on the Hyper-V server named "Hyper-V Host". The server object is obtained with Get-VBRServer and piped down.

PS C:\PS> Get-VBRServer -Name "Hyper-V Host" | Find-VSBHvVirtualLab

Example 2

This command looks for the virtual labs with names starting with "Hv" 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 Hv*

Related Commands

Get-VBRServer

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Endpoint Backup Documentation

Veeam Management Pack Documentation