PowerShell Logo Small

Get-VMNetworkAdapter



This is the built-in help made by Microsoft for the command 'Get-VMNetworkAdapter', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets the virtual network adapters of a virtual machine, snapshot, management OS, or of a virtual machine and management OS.

SYNTAX


Get-VMNetworkAdapter [-VMName] <String[]> [[-Name] <String>] [-ComputerName <String[]>] [-IsLegacy <Boolean>] [<CommonParameters>]
Get-VMNetworkAdapter [[-Name] <String>] [-ComputerName <String[]>] [-SwitchName <String>] -ManagementOS [<CommonParameters>]
Get-VMNetworkAdapter [[-Name] <String>] [-All] [-ComputerName <String[]>] [<CommonParameters>]
Get-VMNetworkAdapter [-VM] <VirtualMachine[]> [[-Name] <String>] [-IsLegacy <Boolean>] [<CommonParameters>]
Get-VMNetworkAdapter [-VMSnapshot] <VMSnapshot> [[-Name] <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-VMNetworkAdapter cmdlet gets the virtual network adapters of the specified virtual machine, snapshot, or management OS.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306860

REMARKS

<

Examples


Example 1

PS C:\>Get-VMNetworkAdapter –VMName *



Gets virtual network adapters from all virtual machines on the local Hyper-V host.




Example 2

PS C:\>Get-VMNetworkAdapter -ManagementOS



Gets the virtual network adapters in the ManagementOS (i.e. the local Hyper-V host).




Example 3

PS C:\>Get-VMNetworkAdapter -All



Gets virtual network adapters from all virtual machines as well as the management OS.