I created a PowerShell script that makes an export of all the PortGroup names and VLANIDβs to a CSV file. The next step is to import these setting into another ESX server. You can make your own contribution or follow the progress at this address. LucD from Belgium, thanks for your help.
Get-VIServerΒ vcserver.ntpro.local -User -Password
$MyHost = Get-VMHostΒ esx35.ntpro.localΒ
$HostView = Get-View $MyHost.ID
$NetworkSystem = get-view $HostView.ConfigManager.NetworkSystem
$AllPortGroups = $NetworkSystem.NetworkInfo.Portgroup
Foreach ($HostPortGroup in $AllPortGroups)
{$HostPortGroup.Spec | Select-Object Name,VlanId | Out-File -filepath "C:\portgroups.txt" -append}