Is there anyway to disable a virtual NIC connected to a VM through the CLI? I have looked through the commands and I can only find disconnecting a vmnic on the host but not a NIC on the VM. Thank you!
This is extremely simple with PowerCLI. Don't even need to google it ![]()
Get-VM 'NAME_OF_VM'| Get-NetworkAdapter | Set-NetworkAdapter -Connected:$false -Confirm:$false
You should be able to do it through PowerCLI commands.
This is extremely simple with PowerCLI. Don't even need to google it ![]()
Get-VM 'NAME_OF_VM'| Get-NetworkAdapter | Set-NetworkAdapter -Connected:$false -Confirm:$false
