[Samba] Compiling WMIC/Accessing WMI

Andrew Bartlett abartlet at samba.org
Thu Jun 25 02:59:58 UTC 2020

On Thu, 2020-06-25 at 11:29 +1000, Matthew Jurgens via samba wrote:
> Background:
> As of Windows 10 version 2004, the wmic client no longer works. It
> gets 
> the following error -
> [wmi/wmic.c:196:main()] ERROR: Login to remote object.
> NTSTATUS: NT code 0x80010111 - NT code 0x80010111
> This seems to be an RPC header error. Presumably Microsoft changed 
> something that broke wmic.
> Since I found wmic.c in the samba source I thought that it might be
> able 
> to be compiled as part of samba. However, I've found an old thread
> in 
> this mailing list 
> https://lists.samba.org/archive/samba/2018-February/214033.html()
> which 
> suggests that compiling it would not be possible.
> So I have two questions:
> 1) Is compiling wmic as part of samba still out of the question?

Yes, absent a massive development effort.  I really should delete those
last scraps. 

> 2) Is there some other way to access WMI on Windows from Linux?

Try over web services (which are not really web), there are python
clients for some of this.


Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT - Expert Open Source

More information about the samba mailing list