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}