Looking at windows_exporter's go.mod file, it uses github.com/StackExchange/wmi. The comments there say it talks to WMI on the local machine, not WMI over the network.
On Monday, 8 February 2021 at 15:12:19 UTC [email protected] wrote: > Hi, > I don't think there exists WMI client implementation in Go. > You could try cgo with samba WMI implementation > > https://github.com/greenbone/openvas-smb > > Thanks, > Aravindhan K > > On Mon, Feb 8, 2021, 1:49 AM Tom Limoncelli <[email protected]> wrote: > >> I've been using Unix for decades (and Go since the pre-releases) and >> now I find myself needing to use Go to talk to the Windows WMI system. >> There isn't a lot of GO-specific documentation and I could use help >> figuring out where to get started. Sadly google searches for getting >> started with WMI are about as useful as learning to perform surgery by >> googling for "broken bone". >> >> I'm trying to use WMI to talk to the Windows DNS Server. My MVP would >> be to do the equivalent of adding an A or MX record to an existing DNS >> zone (similar to >> >> https://docs.microsoft.com/en-us/windows/win32/dns/dns-wmi-provider-samples-managing-dns-resource-records >> ) >> >> Can anyone point me in the right direction? What are the best >> resources for learning WMI in general? >> >> Thanks in advance! >> Tom >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/CAHVFxgnqjd%2BwZjYiJ3YyhHDFaVHuTEQCrapiECaTzFvFY8qNMA%40mail.gmail.com >> . >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/127e551f-4c77-4390-88ac-888f1804916cn%40googlegroups.com.
