realFranco opened a new pull request, #19703: URL: https://github.com/apache/kafka/pull/19703
## Info - Remove the `wmic` dependency while run `kafka-server-start.bat` script in order to defined the `KAFKA_HEAP_OPTS` if is not previously defined. ## Why - If the host machine do not have the `wmic` dependency, the execution will gonna fail; - If the host machine contains restrictions about the way of: - install dependencies; - environment variables; - `PATH` modifications the Kafka service won't start. ## Evidence ```bash # powershell systeminfo Host Name: ... OS Name: ... Microsoft Windows 11 Enterprise OS Version: ... 10.0.26100 ... ... System Type: ... x64-based PC ... ``` A way of execute Kafka (one of the possible many ways) and the error expected: ```bash # powershell cd C:\directory\kafka; .\bin\windows\kafka-server-start.bat .\config\server.properties 'wmic' is not recognized as an internal or external command, operable program or batch file. ``` After apply the contribution we have Kafka working as expected. ## Disclaimer UNIX user here, I do not invest to much time about the collateral damage and/or why the `wmic` is required. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org