Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Invoke the method of the class #56

Open
dosgo opened this issue Jun 12, 2021 · 0 comments
Open

Invoke the method of the class #56

dosgo opened this issue Jun 12, 2021 · 0 comments

Comments

@dosgo
Copy link

dosgo commented Jun 12, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant