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.
1Get-VM|Get-NetworkAdapter|Set-NetworkAdapter -StartConnected $true -Connected $true -Confirm:$false
Voila! You are done.comments powered by Disqus