wmi icon indicating copy to clipboard operation
wmi copied to clipboard

Invoke the method of the class

Open dosgo opened this issue 4 years ago • 0 comments

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

dosgo avatar Jun 12 '21 16:06 dosgo