Syntax
New-NetworkAdapter [-MacAddress <String>] -NetworkName <String> [-StartConnected] [-WakeOnLan] [-Type <VirtualNetworkAdapterType>] [-VM] <VirtualMachine[]> [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Get-NetworkAdapterDetailed Description
Creates a new virtual network adapter for each of the provided virtual machines and sets the optional properties if provided.Parameters
Input Type
Return Type
VMware.VimAutomation.Types.NetworkAdapterNotes
Examples
-------------- Example 1 -------------- C:\PS>$vm = Get-VM "XP SP2" New-NetworkAdapter -VM $vm -NetworkName "VM Network" -MacAddress 'aa:bb:cc:dd:e e:ff' -WakeOnLan -StartConnected Creates a new network adapter named VM Network for the virtual machine.