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

Re: migrate vm network cards from DVS to standardswitch and back

$
0
0

got it :

 

$vmlist = get-vmhost esx04.pimdomain | get-vm

foreach($vm in $vmlist){

    Get-NetworkAdapter $vm | %{

    Write-Host "Setting adapter" $_.NetworkName on $vm

    $_ | Set-NetworkAdapter -PortGroup (Get-VirtualPortGroup -VMhost esx04.pimdomain -Standard -Name $_.NetworkName) -Confirm:$false

}

}

 

 

thanks for the help


Viewing all articles
Browse latest Browse all 236436

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>