wmic stopped working on Windows 10 Build 2004
- This topic has 42 replies, 8 voices, and was last updated 1 year, 1 month ago by
admin.
- AuthorPosts
- 2021-04-22 at 1:05 AM #514
Baldnerd
ParticipantInstalled flex – no effect.
Downgraded GCC to v7.3.0: no effect.Seriously… what am I missing here?
2021-04-23 at 1:42 AM #515Baldnerd
ParticipantI’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.2021-04-23 at 1:48 AM #516Baldnerd
ParticipantInstalled xsltproc. Still no.
2021-04-23 at 1:59 AM #517Baldnerd
ParticipantI’ve removed blkid and confirmed the output now matches that of the Linux Mint machine, but still no go.
2021-04-23 at 9:24 AM #518admin
KeymasterOn 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::SysInfo2021-04-23 at 10:48 PM #519Baldnerd
ParticipantThank 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.
2021-04-24 at 1:28 AM #520Baldnerd
ParticipantOkay… 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 thewmic
file from thescripts
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.
2021-05-05 at 6:57 PM #523dgs
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!
2021-05-06 at 1:03 AM #524Baldnerd
ParticipantHa, 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!
2021-05-06 at 1:58 AM #525dgs
ParticipantGood to know the python alternative is working, I might need to start looking at that soon as well 😀
2021-10-31 at 6:04 AM #554MietekN
Participantwmic-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).
2021-10-31 at 6:15 PM #557admin
KeymasterWe 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/2022-07-02 at 8:54 AM #701admin
KeymasterThis new version of Check WMI Plus will fix all your issues
- AuthorPosts
- You must be logged in to reply to this topic.