PowerCLI

 View Only

 Remove Network Adapter of a Powered on VM

Sam30's profile image
Sam30 posted May 23, 2024 12:48 PM

It's strange how we cannot remove a network adapter of a VM in powered on state using Remove-NetworkAdapter cmdlet.

It needs VM to be powered off state if we want to use Remove-NetworkAdapter cmdlet.

Can someone help me with a way to remove network adapter from a powered on VM using PowerCLI. I don't want to just disconnect the adapter but completely delete it from the VM.

I do see someone directed to certain articles in this Any way to remove a NetworkAdapter from a running VM? : r/powercli (reddit.com) but unfortunately VMware to Broadcom movement has made those articles dead.

LucD's profile image
LucD