WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Switches the Executable.getProcessBy* family of APIs to use powershell.exe instead of wmic.exe on Windows, since the latter has been removed from the latest versions of Windows.

Details

This conversion also allows normalizing the parser input format between Linux and Windows.

How it was tested

Local verification of command. Added unit test that invokes Executable.getProcessById and Executable.getProcessByIdAsync and verifies that the pid of the current node process is in the list and identified as node.

Impacted documentation

Method comments for Executable.getProcessById and Executable.getProcessByIdAsync.

@dmichon-msft dmichon-msft merged commit dac8e5a into microsoft:main Nov 21, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Nov 21, 2025
@dmichon-msft dmichon-msft deleted the executable-modern-win11 branch November 21, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants