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? 2) Is there some other way to access WMI on Windows from Linux? Thanks
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. Sorry! Andrew Bartlett -- Andrew Bartlett https://samba.org/~abartlet/ Authentication Developer, Samba Team https://samba.org Samba Development and Support, Catalyst IT - Expert Open Source Solutions https://catalyst.net.nz/services/samba
On 25/06/2020 12:59 pm, Andrew Bartlett via samba wrote:> 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. > > Sorry! > > Andrew Bartlett >Are you aware of any specifically? I've tried searching for some and tried a few different projects but with the same error result