Disconnected vNIC's?

Published on November 18, 2015 under VMware · Tagged Networking and PowerCLI · Read in about 1 min (80 words)

Ever wonder why a VM isn’t on the network?

I was working on deploying some test VM’s and for some reason all the VM’s that were cloned decided to start with the network disconnected, and the connect on power on was also not selected.

I decided to throw together this quick one-liner that will make sure every VM is set to start connected on power on and is currently connected.

Get-VM|Get-NetworkAdapter|Set-NetworkAdapter -StartConnected $true -Connected $true -Confirm:$false

Voila! You are done.

Share this post
comments powered by Disqus

See Also