Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230663

Re: power-on network adapters script

$
0
0

I see.

The following can set the Connected and StartConnected tickbox.

 

Get-VM|Get-NetworkAdapter|
where {!$_.ConnectionState.StartConnected} |
Set-NetworkAdapter-Connected:$true-StartConnected:$true-Confirm:$false

You should of course further specify which VMs need to be changed by adapting the Get-VM or by inserting a Where-clause


Viewing all articles
Browse latest Browse all 230663

Trending Articles