# Create a text file with list of vms that you want to change network adapter
$VMlist = Get-content C:\Users\ap_vn1651\Documents\VMlist.txt
Get-VM $VMlist | Get-NetworkAdapter | set-networkadapter -type vmxnet3 -confirm:$false
$VMlist = Get-content C:\Users\ap_vn1651\Documents\VMlist.txt
Get-VM $VMlist | Get-NetworkAdapter | set-networkadapter -type vmxnet3 -confirm:$false