StackExchange / wmi

WMI for Go
http://godoc.org/github.com/StackExchange/wmi
MIT License
433 stars 173 forks source link

Invoke the method of the class #56

Open dosgo opened 3 years ago

dosgo commented 3 years ago

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