Find-VBRHvEntity
Short Description
Returns Hyper-V objects.
Applies to
Platform: Hyper-V
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Look for an array of Hyper-V hosts and VMs.
 
Find-VBRHvEntity [-Name <String[]>] [-Server <CHost[]>] [-HostsAndVMs] [<CommonParameters>]  | 
- Look for an array of Hyper-V hosts.
 
Find-VBRHvEntity [-Name <String[]>] [-Server <CHost[]>] [-Hosts] [<CommonParameters>]  | 
- Look for an array of Hyper-V hosts and volumes.
 
Find-VBRHvEntity [-Name <String[]>] [-Server <CHost[]>] [-HostsAndVolumes] [<CommonParameters>]  | 
- Look for an array of Hyper-V VM groups.
 
Find-VBRHvEntity [-Name <String[]>] [-Server <CHost[]>] [-VMGroups] [<CommonParameters>]  | 
- Look for an array of Hyper-V tags:
 
Find-VBRHvEntity [-Name <String[]>] [-Server <CHost[]>] [-Tags] [<CommonParameters>]  | 
Detailed Description
This cmdlet retutns an array of Hyper-V objects.
Parameters
Parameter  | Description  | Type  | Required  | Position  | Accept Pipeline Input  | 
|---|---|---|---|---|---|
Name  | Specifies an array of entity names. The cmdlet will return entities with these names.  | String[]  | False  | Named  | False  | 
Server  | Specifies an array of Hyper-V hosts. The cmdlet will return entities created on these hosts.  | Accepts the CHost[] object. To get this object, run the Get-VBRServer cmdlet.  | False  | Named  | True (ByValue,  | 
HostsAndVMs  | Defines that the cmdlet will return an array of hosts and VMs. Default: False.  | SwitchParameter  | False  | Named  | False  | 
Hosts  | Defines that the cmdlet will return an array of hosts. Default: False.  | SwitchParameter  | False  | Named  | False  | 
HostsAndVolumes  | Defines that the cmdlet will return an array of hosts and volumes. Default: False.  | SwitchParameter  | False  | Named  | False  | 
VMGroups  | Defines that the cmdlet will return an array of VM groups. Default: False.  | SwitchParameter  | False  | Named  | False  | 
Tags  | Defines that the cmdlet will return an array of tags. Note: To specify the tag name, provide the Name parameter. Default: False.  | SwitchParameter  | False  | Named  | False  | 
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the following Hyper-V objects:
- CRootItem
 - CHvHostItem
 - CHvVmItem
 
Examples
Example 1. Getting all Hosts and VMs Available on Hyper-V
This example shows how to get a list of all hosts and VMs available on the HvHost Hyper-V server. 
 Perform the following steps: 
  | 
Example 2. Getting all Hosts Available on Hyper-V
This example shows how to get a list of all hosts available on the HvHost Hyper-V server. 
 Perform the following steps: 
 
  | 
Example 3. Getting all Hosts and Volumes Available on Hyper-V
This example shows how to get a list of all hosts and volumes available on the HvHost Hyper-V server. 
 Perform the following steps: 
 
  | 
Example 4. Getting all Hyper-V Tags
This example shows how to get a list of all tags available on the HvHost Hyper-V server. 
 Perform the following steps: 
 
  | 
Related Commands