public static ISyntheticEthernetPortSettingData GetDefaultSyntheticAdapter(IComputerSystem host) { IResourcePool resource = ResourcePool.Query(host, "ResourceSubType = 'Microsoft:Hyper-V:Synthetic Ethernet Port' and Primordial = True").FirstOrDefault <IResourcePool>(); Invariant.ArgumentNotNull((object)resource, "Legacy Adapter not found"); using (resource) return(SyntheticEthernetPortSettingData.GetDefaultFromResourcePool(resource)); }