Quantcast
Viewing all articles
Browse latest Browse all 240675

Re: how to add the ip,dns,gateway to vm after adding new network adapter to it

But your script removes the NIC and then adds a new NIC, you should be using the new NIC.

Do a Get-VMGuestNetworkInterface just before the Set-VMGuestNetworkInterface, don't use the old NIC (in $nice) that you removed.

Does that work ?


Viewing all articles
Browse latest Browse all 240675

Trending Articles