This is the built-in help made by Microsoft for the command 'Add-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.
Adds a virtual network adapter to a virtual machine.
Add-VMNetworkAdapter [-VMName] <String[]> [-ComputerName <String[]>] [-DynamicMacAddress] [-IsLegacy <Boolean>] [-Name <String>] [-Passthru] [-ResourcePoolName <String>]
[-StaticMacAddress <String>] [-SwitchName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-VMNetworkAdapter [-ComputerName <String[]>] [-DynamicMacAddress] [-ManagementOS] [-Name <String>] [-Passthru] [-StaticMacAddress <String>] [-SwitchName <String>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Add-VMNetworkAdapter [-VM] <VirtualMachine[]> [-DynamicMacAddress] [-IsLegacy <Boolean>] [-Name <String>] [-Passthru] [-ResourcePoolName <String>] [-StaticMacAddress
<String>] [-SwitchName <String>] [-Confirm] [-WhatIf] [<CommonParameters>]
The Add-VMNetworkAdapter cmdlet adds a virtual network adapter to a virtual machine.
<
Online Version: http://go.microsoft.com/fwlink/?LinkID=306812
<
Example 1
PS C:\>Add-VMNetworkAdapter –VMName Redmond –Name "Redmond NIC1"
This example adds a virtual network adapter named Redmond NIC1 to a virtual machine named Redmond.
Example 2
PS C:\>Add-VMNetworkAdapter -VMName Test -SwitchName Network
This example adds a virtual network adapter to a virtual machine named Test and connects it to a virtual switch named Network.
Example 3
PS C:\>Get-VM Test | Add-VMNetworkAdapter -IsLegacy $true –Name Bootable
This example uses two cmdlets and the pipeline in one command to perform the operation.
Example 4
PS C:\>Add-VMNetworkAdapter -ManagementOS -Name Secondary
This example adds a second virtual network adapter in the management operating system.