How to call the method of the class
For example, Win32_NetworkAdapterConfiguration SetDNSServerSearchOrder
The following method is invalid
_, err = wmi.CallMethod([]interface{}{}, fmt.Sprintf(Win32_NetworkAdapterConfiguration.ServiceName="%s", iName), "SetDNSServerSearchOrder", params)
//
How to call the method of the class For example, Win32_NetworkAdapterConfiguration SetDNSServerSearchOrder
The following method is invalid _, err = wmi.CallMethod([]interface{}{}, fmt.Sprintf(
Win32_NetworkAdapterConfiguration.ServiceName="%s"
, iName), "SetDNSServerSearchOrder", params) //Invalid object path