microsoft / microsoft/pxt-microbit

pxt deploy fails because WMIC is no longer available

Open
#6,668 1 comment 1 reaction 2 assignees View on GitHub

@abchatra is already working on this.

Since Mar 18, 2026.

cli
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug

Workaround: transfer built/binary.hex

pxt uses WMIC
https://github.com/search?q=repo%3Amicrosoft%2Fpxt%20wmic&type=code

INTERNAL ERROR: Error: Command failed: wmic PATH Win32_LogicalDisk get DeviceID, VolumeName, FileSystem, DriveType
'wmic' is not recognized as an internal or external command, operable program or batch file.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a local project folder
  2. Try command pxt
  3. See error

Expected behavior
pxt command works on Windows 11

micro:bit version (please complete the following information):
not hardware related

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 11 24H2
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 143.0.7499.40

Additional context
WMI command line (WMIC) utility deprecation: Next steps

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.