my prob is that , i have to remove the current networking adapter ex:E1000 and i have to add the new network adapter ex:vmxnet3
For this i am following these steps
1.get-vmguestnetworkinterface, by using this command i m getting all the info about vm ex:ip,dns,subnetmask
2.remove-network adapter
3.new-networkadapter
4.set-vmguestnetworkinterface,by using this command i m setting all the info to vm
But the prob is that i m getting the error like
Set-VMGuestNetworkInterface : 3/28/2013 3:03:21 PM Set-VMGuestNetworkInterface "Error occured while configuring the network:'Elem ent not found. '. At C:\Users\Automation\Desktop\VMBUILD(Siva)\update.ps1:29 char:28 + Set-VMGuestNetworkInterface <<<< -VMGuestNetworkInterface $name -guestuser Administrator -guestpassword msn -Netmask $subnetmask -Gatewa y $gateway -ip $ip -dns $dns + CategoryInfo : InvalidArgument: (:) [Set-VMGuestNetworkInterface], ViError + FullyQualifiedErrorId : Client20_VmGuestService_SetVmGuestNetworkInterface_Error,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetVmG uestNetworkInterface