When I execute the script mentioned below, I see a task is created in the DistributionSwitch. However when I login to Vsphere I notice the following Error
<<<< Error Stack. Non-extension user session cannot create a vDS with Capability.DvsOperationSupported is false>>>
As distributionswitch we use Cisco Nexus 1000V. I am stuck now. Anybody know how to fix this?
<<<<<<<My script>>>> Some items cut out due to security
$dvSwitchName = "<Switchnamehere>"
$dvs = Get-VirtualSwitch -Distributed -Name $dvSwitchName | Get-View
$cfg = New-Object -TypeName VMware.Vim.DVSConfigSpec
# New
$cfg.<configitemhere> =
$cfg.configVersion = $dvs.config.configVersion
$dvs.ReconfigureDvs_Task( $cfg )
# Report new configuration
$dvs = Get-VirtualSwitch -Distributed -Name $dvSwitchName | Get-View
Write-Host "The new configuration = $($dvs.<ConfigItem>)" -for Green
0