Skip to content

Conversation

@jiafu1115
Copy link
Contributor

@jiafu1115 jiafu1115 commented Nov 17, 2025

Hi Team:

Refer to https://issues.apache.org/jira/browse/KAFKA-19890

In windows 11. It failed to start/stop the kafka due to the WMIC tool is superseded by Windows PowerShell.
WMIC is used only in two places (start + stop)
image

More background information:
https://techcommunity.microsoft.com/blog/windows-itpro-blog/wmi-command-line-wmic-utility-deprecation-next-steps/4039242

Proposing a new PR to fix this issue. Since I found that PR #20257 already covers the startup side, So I removed my startup changes and kept only the stop fix. Thanks.

Attach part of the tests of result (verify the command) for this PR except the basic tests:
image

Thanks a lot!

@github-actions github-actions bot added triage PRs from the community small Small PRs labels Nov 17, 2025
@jiafu1115 jiafu1115 marked this pull request as ready for review November 17, 2025 00:50
@jiafu1115 jiafu1115 changed the title Fix stop command failure after wmic removal in newer Windows. KAFKA-19890: Fix stop command failure after wmic removal in newer Windows. Nov 17, 2025
@github-actions
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

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

Labels

needs-attention small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant