VMware Cloud Community
samcatoe
Enthusiast
Enthusiast
Jump to solution

Disable Virtual Machine NIC Through esxcli

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!

Reply
0 Kudos
1 Solution

Accepted Solutions
jrodsguitar
Enthusiast
Enthusiast
Jump to solution

This is extremely simple with PowerCLI. Don't even need to google it Smiley Happy

Get-VM 'NAME_OF_VM'| Get-NetworkAdapter | Set-NetworkAdapter -Connected:$false -Confirm:$false

Blog: https://powershell.house/

View solution in original post

2 Replies
Debashish_Rath
Enthusiast
Enthusiast
Jump to solution

You should be able to do it through PowerCLI commands.

Sincerely, Debashish Kumar Rath SkyLine Support Moderator
Reply
0 Kudos
jrodsguitar
Enthusiast
Enthusiast
Jump to solution

This is extremely simple with PowerCLI. Don't even need to google it Smiley Happy

Get-VM 'NAME_OF_VM'| Get-NetworkAdapter | Set-NetworkAdapter -Connected:$false -Confirm:$false

Blog: https://powershell.house/