You can migrate both physical and virtual network adapters to a vSphere standard switch simultaneously.

Prerequisites

Verify that you are connected to a vCenter Server system.

Procedure

  1. Get the physical network adapters that you want to migrate.
    $pNics = Get-VMHostNetworkAdapter -VMHost $vmhost -Physical
  2. Get the virtual network adapters that you want to migrate.
    $vNicManagement = Get-VMHostNetworkAdapter -VMHost $vmhost -Name vmk0
    $vNicvMotion = Get-VMHostNetworkAdapter -VMHost $vmhost -Name vmk1
  3. Get the vSphere standard switch to which you want to migrate the network adapters.
    $vSwitch = Get-VirtualSwitch -VMHost $vmhost -Name vSwitch0
  4. Migrate all network adapters to the vSphere standard switch.
    Add-VirtualSwitchPhysicalNetworkAdapter -VirtualSwitch $vSwitch -VMHostPhysicalNic $pNics -VMHostVirtualNic $vNicManagement,$vNicvMotion