Skip to content

chore(docs): add Windows wmic information to README#393

Closed
MikeMcC399 wants to merge 2 commits into
bahmutov:masterfrom
MikeMcC399:docs/install-win-11-wmic
Closed

chore(docs): add Windows wmic information to README#393
MikeMcC399 wants to merge 2 commits into
bahmutov:masterfrom
MikeMcC399:docs/install-win-11-wmic

Conversation

@MikeMcC399
Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 commented Nov 30, 2024

Issue

start-server-and-test uses the unmaintained npm package ps-tree@1.2.0, last published 6 years ago, with cross-platform support, to implement the shut down server functionality.

As shown in the ps-tree > README > Windows section, ps-tree makes use of the wmic utility on Windows. This is the "Windows Management Instrumentation command-line" utility executable, also referred to as WMIC (upper case).

WMIC has however been deprecated by Microsoft since Aug 2016 and is removed by default in Windows 11 24H2 and Windows Server 2025.

There is currently no higher version of ps-tree available which removes the dependency on WMIC. There are two associated open PRs indexzero/ps-tree#59 and indexzero/ps-tree#62 which have not received any maintainer feedback.

Change

Add information into the README > Install section for Windows 11 24H2 and Windows Server 2025.

References

@MikeMcC399 MikeMcC399 mentioned this pull request Nov 30, 2024
@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

The issue also affects Windows Server:

Features removed or no longer developed starting with Windows Server 2025 includes the section

@MikeMcC399 MikeMcC399 marked this pull request as draft December 23, 2024 09:54
@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

MikeMcC399 commented Jan 8, 2025

Withdrawn - due to lack of maintainer response

@MikeMcC399 MikeMcC399 closed this Jan 8, 2025
@MikeMcC399 MikeMcC399 deleted the docs/install-win-11-wmic branch January 8, 2025 07:44
@daniatic
Copy link
Copy Markdown

daniatic commented Jul 8, 2025

@MikeMcC399 thanks for your work on this repo and this issue! What's the current status - any progress on a fix or alternative? I can work around it by installing wmic.exe for now, but wondering if there's a better long-term solution in the works.

@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

@daniatic

I can't really answer your question as I'm not a maintainer of this repo, just a consumer.

Looking at the commit history, the last time the owner committed to the master branch was in the year 2023, so I wouldn't be hopeful that there will be any solution provided here.

Possibly a combination of wait-on and npm-run-all2 might be a replacement, but that's just an idea and I haven't tried it out.

@daniatic
Copy link
Copy Markdown

daniatic commented Jul 8, 2025

@MikeMcC399 thanks for your reply. Sorry for mistakenly assuming you were a maintainer - I saw your extensive work on this issue and made that assumption. Really appreciate your suggestions!

Comment thread README.md
@MikeMcC399
Copy link
Copy Markdown
Collaborator Author

This PR is obsolete through the release of v3.0.0 which drops the requirement for WMIC on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants