wmic stopped working on Windows 10 Build 2004

Home Forums Help wmic stopped working on Windows 10 Build 2004

Viewing 13 posts - 31 through 43 (of 43 total)
  • Author
    Posts
  • #514
    Baldnerd
    Participant

    Installed flex – no effect.
    Downgraded GCC to v7.3.0: no effect.

    Seriously… what am I missing here?

    #515
    Baldnerd
    Participant

    I’ve downgraded make to 4.1 to match the Linux Mint machine. Still the same compile error.


    @admin
    any more info about your RPi for me so I can replicate your environment? Thanks in advance.

    #516
    Baldnerd
    Participant

    Installed xsltproc. Still no.

    #517
    Baldnerd
    Participant

    I’ve removed blkid and confirmed the output now matches that of the Linux Mint machine, but still no go.

    #518
    admin
    Keymaster

    On the Rapsberry Pi that gave me a successful compile I believe this is what I had previously done:

    – install Pi OS Buster via Noobs

    apt-get update
    apt upgrade
    apt-get remove sonic-pi minecraft-pi wolfram-engine wolframscript libraspberrypi-dev libraspberrypi-doc libraspberrypi0 pigpio
    apt-get install libwww-perl openvpn monitoring-plugins-basic libraspberrypi-bin speedtest-cli snmp libmicrohttpd12 inotify-tools
    cpan install Linux::SysInfo

    #519
    Baldnerd
    Participant

    Thank you @admin
    I’m so discouraged over this. So seeing your message, I downloaded NOOBS. Figures, the only Raspberry Pi devices I have at home are Pi 400’s so NOOBS won’t boot. So this morning I went and got an old Raspberry Pi 3 B+. Installed the old Raspbian Buster from NOOBS as you suggest, and tried compiling before making any changes, failed. Removed and added the packages you suggest, and still, fail. Same error message.

    Compiling heimdal/lib/roken/getprogname.c with host compiler
    Use of uninitialized value in pattern match (m//) at ./script/cflags.pl line 15, <IN> line 1212.
    Linking bin/static/libheimdal_roken_getprogname_h.a
    /usr/bin/ar: bin/static/libheimdal_roken_getprogname_h.a: No such file or directory
    make[1]: *** [Makefile:15190: bin/static/libheimdal_roken_getprogname_h.a] Error 1
    make[1]: Leaving directory '/tmp/wmi-1.4.1/Samba/source'
    cd Samba/source ; \
    cp bin/winexe /bin ; \
    cp bin/wmic /bin ; \
    cp bin/shared/*async_wmi_lib.so.0* /lib/python
    cp: cannot stat 'bin/winexe': No such file or directory
    cp: cannot stat 'bin/wmic': No such file or directory
    cp: cannot stat 'bin/shared/*async_wmi_lib.so.0*': No such file or directory
    make: *** [GNUmakefile:42: pywmi-installed] Error 1

    I’m shocked that I seem to be the only person having trouble since I’ve replicated the issue on several systems now. Maybe everyone else simply gives up more easily than I. 🙁

    Any other thoughts?

    Thanks again.

    #520
    Baldnerd
    Participant

    Okay… I have given up on Samba/wmic, but will not give up on check_wmi_plus.

    So I set out to find another option, and low and behold, after all this crazy testing and trying so hard to get this old, unsupported code to compile, I found a project that not only WORKS, but is designed specifically as a wmic replacement for check_wmi_plus.


    @admin
    perhaps you should consider abandoning the old samba code and instead promote this as the needed “fix”?

    https://github.com/dlundgren/py-wmi-client

    On Debian, all I had to do was install python python-natsort python-impacket packages, download the wmic file from the scripts folder of the git repository, make it executable, and voila!

    Being that it’s a python script, it will work on all platforms. No screwing around with compiling on arm64, amd64, armhf, etc. Just download the script and run. Problem solved.

    I hope this helps someone out.

    #523
    dgs
    Participant

    @Baldnerd I was getting frustrated like you and spent long time trying to compile and getting the same error.

    /usr/bin/ar: bin/static/libheimdal_roken_getprogname_h.a: No such file or directory
    make[1]: *** [Makefile:15190: bin/static/libheimdal_roken_getprogname_h.a] Error 1

    After banging my head on the keyboard for a while, the fix was shockingly super simple – In the Samba/source/bin/ folder I had to create the directory ‘static’

    After I did that the compile got much farther, I think it still errored and failed on something else, but in the bin folder it generated the wmic binary I needed 🙂

    And I can confirm this wmic is working on Windows 20H2!

    Hope this helps someone out!

    #524
    Baldnerd
    Participant

    Ha, well-spotted @dgs – and thanks for pinging me by email too.

    I had given up and moved on to a different code, now using a Python drop-in replacement for the old, clearly unsupported wmic code from Samba. The Samba team themselves have stated they should remove wmic since it has been unsupported for so long, so that gives me little long-term hope for the Samba version and I’m happy to say the Python alternative works great as a drop-in replacement.

    What a headache that was! Glad you spotted the issue and thank you for sharing (late for me, but will surely help someone else down the line) 🙂

    Cheers!

    #525
    dgs
    Participant

    Good to know the python alternative is working, I might need to start looking at that soon as well 😀

    #554
    MietekN
    Participant

    wmic-1.4.1 works with Windows 10 Build 2004 but now does not work with Windows 2000 (error NT code 0x80080005 or NT code 0x80010110).

    #557
    admin
    Keymaster

    We are going to keep having problems with wmic unless it is fixed properly.
    Please see this post https://edcint.co.nz/checkwmiplus/long-term-fix-for-wmic-keeping-check-wmi-plus-alive/

    #701
    admin
    Keymaster

    This new version of Check WMI Plus will fix all your issues

    Version 1.67 Released

Viewing 13 posts - 31 through 43 (of 43 total)
  • You must be logged in to reply to this topic.