wmi
wmi copied to clipboard
Invoke the method of the class
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