API Reference
Command
Get-CxHyperVHost
Gets native Hyper-V host inventory through the Hyper-V WMI v2 provider.
Examples
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[]
- Target computer names. Use . for the local machine or provide DNS/NetBIOS names. When omitted, the local computer is queried.
- TimeoutSeconds int
- Optional WMI timeout in seconds.
Outputs
ComputerX.HyperV.HyperVHostInfo