You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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