I am busy with my postinstall script for esx4i.
I use the function add-dvswhost from lucd.info
After i add the esxi host to vcenter i want it to join the dswitch, but for some reason i get the following error when i just added the server to vcenter:
Get-View : Cannot bind parameter 'Id'. Cannot convert the
"VimApi_41.ManagedObj
ectReference" value of type "VimApi_41.ManagedObjectReference" to type
"VMware.
Vim.ManagedObjectReference".
If i execute the function again, when the server is in vcenter i don't get an error.One thing i did notice is that when i add the esxi host to vcenter is that when the HA agents get installed it does a network refresh.
Who has the solution for me?
</div>