TestimoX

API Reference

Command

Get-CxHyperVInventory

Namespace ComputerX.PowerShell
Inputs
System.String[]
Outputs
ComputerX.HyperV.HyperVInventoryInfo

Gets consolidated native Hyper-V inventory through the Hyper-V WMI v2 provider.

Examples

Authored help example

Example 1: Retrieves consolidated Hyper-V inventory from the local host.

PS>


Get-CxHyperVInventory
        

Example 2: Queries selected inventory from a remote Hyper-V host.

PS>


Get-CxHyperVInventory -ComputerName HV01 -Name 'DC*','External*'
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-CxHyperVInventory [-ComputerName <string[]>] [-Name <string[]>] [-TimeoutSeconds <int>] [<CommonParameters>]
#

Parameters

ComputerName string[] optionalposition: 0pipeline: true (ByValue, ByPropertyName)
Target computer names. Use . for the local machine or provide DNS/NetBIOS names. When omitted, the local computer is queried.
Name string[] optionalposition: namedpipeline: false
Optional wildcard patterns passed to child VM, configuration, resource, disk, network adapter, and switch queries. The same patterns are applied across all child query surfaces.
TimeoutSeconds int optionalposition: namedpipeline: false
Optional WMI timeout in seconds for each child query.

Outputs

ComputerX.HyperV.HyperVInventoryInfo