TestimoX

API Reference

Command

Get-CxHyperVVirtualNetworkAdapter

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

Gets native Hyper-V virtual network adapter inventory through the Hyper-V WMI v2 provider.

Examples

Authored help example

Example 1: Retrieves virtual network adapters visible on the local Hyper-V host.

PS>


Get-CxHyperVVirtualNetworkAdapter
        

Example 2: Queries virtual network adapters for a selected VM id or MAC address pattern.

PS>


Get-CxHyperVVirtualNetworkAdapter -ComputerName HV01 -Name '*11111111-1111-1111-1111-111111111111*','*00155D*'
        

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-CxHyperVVirtualNetworkAdapter [-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 matched against VM id, adapter name, WMI identity, MAC address, and connection fields.
TimeoutSeconds int optionalposition: namedpipeline: false
Optional WMI timeout in seconds.

Outputs

ComputerX.HyperV.HyperVVirtualNetworkAdapterInfo