TestimoX

API Reference

Command

Get-CxHyperVHost

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

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

Examples

Authored help example

Example 1: Retrieves the local Hyper-V host view.

PS>


Get-CxHyperVHost
        

Example 2: Queries two Hyper-V hosts using a 10 second WMI timeout.

PS>


Get-CxHyperVHost -ComputerName HV01,HV02 -TimeoutSeconds 10
        

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-CxHyperVHost [-ComputerName <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.
TimeoutSeconds int optionalposition: namedpipeline: false
Optional WMI timeout in seconds.

Outputs

ComputerX.HyperV.HyperVHostInfo