$vdsName = 'Lab_DV_SW'
$vdsUplinkNumber = 2
$vds = Get-VDSwitch -Name $vdsName
$spec = New-Object VMware.Vim.VMwareDVSConfigSpec
$spec.ConfigVersion = $vds.ExtensionData.Config.ConfigVersion
$uplink = New-Object VMware.Vim.DVSNameArrayUplinkPortPolicy
$uplink.UplinkPortName = @()
1..$vdsUplinkNumber | %{
$uplink.UplinkPortName += $vds.ExtensionData.Config.UplinkPortPolicy.UplinkPortName[$_ - 1]
}
$spec.UplinkPortPolicy = $uplink
$vds.ExtensionData.ReconfigureDvs($spec)
Made my changes, submitted, error returned "Exception calling "ReconfigureDvs" with "1" argument(s): "The resource '1707' is in use. The Uplink name dvUplink3 is in use by the connected uplink port 1707 on host x.x.0.18, which is connected to the physical network adapter vmnic5"
this error is true as dvuplink3 is connected to vmnic 5, however im not trying to remove dvuplink3. im trying to remove dvuplink 5, 6, 7