-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: spawn wmic ENOENT on Windows 11 24H2 #20
Comments
Do you intend to continue to maintain this repo? |
Yes and no, in the sense that I don't actively work on this but if something is broken and people contribute I'm happy to help |
Thank you very much for responding and explaining your position! At this time I'm unsure how visible the reliance on the deprecated Windows WMIC feature is going to be. I ran Only new installations of Windows 11 24H2 have the WMIC capability disabled. Upgrading from an earlier Windows 11 release does not remove the capability. For Windows Server 2025 it is listed under Features we're no longer developing
|
I think that if there's an alternative we can use, pidtree should try to fallback to that if possible without the user having to do anything. Would you be interested in helping implement it? |
I can offer some support. I noticed that there are some CI compatibility issues, which will get in the way if they are not addressed.
|
|
The issue also affects Windows Server: Features removed or no longer developed starting with Windows Server 2025 includes the section
|
Testing on the new GitHub runner confirms that See Windows Server 2025 is now in public preview
|
|
I haven't had any more feedback from you since your response #20 (comment) last month, so I am now wondering if you are still willing and able to support changes in this repo. Could you please update on your plans? According to npm you are the only one able to publish updates to the npm package pidtree:
|
pidtree
has a dependency on the deprecated Windows Management Instrumentation command-line (WMIC) utilityIssue
pidtree
depends on wmic which is removed by default in new installations of Windows 11 24H2.For Microsoft Windows Servers, wmic has been deprecated since 2016 and it is not installed by default on Windows Server 2025 (see Features we're no longer developing).
Steps to reproduce
Microsoft Windows 11 24H2, Node.js
v22.11.0
LTSIf this is an upgrade from a earlier Windows 11 version, then WMIC can be removed manually to simulate a new installation of Windows 11 24H2. In a Windows Admin Terminal, execute:
then execute the following:
Logs
Suggestion
Implement an alternative to WMIC as advised by the Microsoft IT PRO Blog post WMI command line (WMIC) utility deprecation: Next steps
Workaround
In a Windows Admin Terminal, execute the following to check if WMIC is installed:
and if necessary, then install WMIC
References
Features Removed or Deprecated in Windows Server 2012 Aug 30, 2016
Deprecated features for Windows client Nov 14, 2024
WMI command line (WMIC) utility deprecation: Next steps
How to install WMIC Feature on Demand on Windows 11
The text was updated successfully, but these errors were encountered: