Help Needed: wmic broken as of Windows 10 Version 2004

Update July 2022: All problems with the legacy wmic command line binary can be fixed by moving to Check WMI Plus v1.67

Update 2021: The problem described on this page is now fixed

Express your interest in helping to fix this problem

After upgrading a test machine to Windows 10 Version 2004 wmic stopped working with the following error:

[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT code 0x80010111 – NT code 0x80010111

This appears to be some kind of RPC header error. From the Samba source code:
#define WERR_RPC_E_INVALID_HEADER W_ERROR(0x80010111)

It looks like Microsoft have changed something, maybe in the RPC protocol. The biggest problem is that this may be a precursor to wmic no longer working for future versions of Windows Server, which effectively kills off agentless monitoring of Windows from Linux.

If you know how to fix this or another way to access WMI from Linux, please Contact us so that we can publish the fix on this site.

Note that wmic is not our software, we just use it.

Thanks