I am in need of a powercli script to remove a specific VMkernel adapter on a ESXi 6.5 host on a Distributed Switch.
I am targeting the vmk1 which also has 'vmotion' enabled.
This script snippet works but I need to target the adapter by either having vmotion enabled or by the device name "vmk1"
$network = Get-VMHostNetwork
Remove-VMHostNetworkAdapter $network.VirtualNic -Confirm
Any help would be great.
With the vmkernel name, you can do
You can also target the one(s) where vMotion is enabled.