· Updated

WMIC Not Recognized on Windows 11: 2 Ways to Fix It

Command Prompt showing 'wmic' is not recognized as an internal or external command on Windows 11

Getting 'wmic' is not recognized as an internal or external command, operable program or batch file? Windows 11 24H2/25H2 updates removed WMIC. Pick one fix.

Fix 1: One-click WMIC installer

  1. Download WMIC-Restore.zip and extract it.
  2. Double-click WMIC-Restore.exe and click Yes.

The installer is digitally signed.

WMIC Restore installer window showing SUCCESS - WMIC is working

Fix 2: Restore WMIC with PowerShell

  1. Download WMIC-Restore-Script.zip.
  2. Open your Downloads folder, right-click the zip, choose Extract All and click Extract. Keep the default location.
  3. Click Start, type PowerShell, choose Run as administrator and click Yes.
  4. Paste these two lines and press Enter:
cd "$env:USERPROFILE\Downloads\WMIC-Restore-Script\wmic-restore"
powershell -ExecutionPolicy Bypass -File .\Restore-Wmic.ps1

Wait for SUCCESS - WMIC is working.

Extracted somewhere else? Right-click the wmic-restore folder, choose Copy as path, then type cd, a space, paste with Ctrl+V and press Enter before running the second line.

PowerShell running Restore-Wmic.ps1 and showing SUCCESS - WMIC is working

Check that WMIC works

wmic cpu get name

Command Prompt showing wmic cpu get name returning the CPU name

Related guides: