VMware Cloud Community
tdeg
Contributor
Contributor

Confirm the "Connect At Power On" setting for ALL interfaces on ALL Virtual Machines?

I'd like to confirm the "Connect At Power On" settings for ALL interfaces on ALL Virtual Machines. Is this possible in ESX 6.7.0 without manually going through each VM?

Thanks for your suggestions,

Tags (1)
0 Kudos
2 Replies
scott28tt
VMware Employee
VMware Employee

I would use PowerCLI to do this, you should be able to find example scripts online.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
Gidrakos
Hot Shot
Hot Shot

Scott is exactly right. You can do this with a 1-liner in PowerCli:

Get-Vm | Get-NetworkAdapter | Set-NetworkAdapter -StartConnected $true -confirm:$false

Note: This will set ALL adapters on ALL machines to this setting - you'll have to modify the filter to suit your needs.

0 Kudos