Makes sense, having to dust off my old C++ knowledge from college days . The hard time I washaving is like for my DVswtich function I wrote where I access the host network system object below, to then match it up to what they call it in the API. I see it is called "HostNetworkSystem". I am starting to get it, the project Onyx stuff really helps
#Get esxi object $VMHostobj=Get-VMHost$VMHost #Get Network ID $networkid=$VMHostObj.ExtenSionData.Configmanager.NetworkSystem