How to Add or Remove WMIC command Feature in Windows 11
WMIC (Windows Management Instrumentation Command-line) is a tool that lets you check and change computer settings using text commands, though Microsoft removed it by default starting in Windows 11 version 22H2.
Older scripts and hardware tests still need WMIC to work properly even though Windows PowerShell handles most modern system tasks now. You can add the feature back to your PC if your older tools require it.
Open Windows Terminal as administrator and use the DISM command. To add WMIC, type DISM /Online /Add-Capability /CapabilityName:WMIC. To remove it, use DISM /Online /Remove-Capability /CapabilityName:WMIC. Press Enter after pasting the command.
Why You Might Need This
Trimming down a Windows 11 installation often involves removing optional components like WMIC. Reinstalling the tool later takes only a quick command if scripts or legacy tools require it. Managing computers via the command line becomes possible again once the feature returns.
Important: Admin Rights Required
⚠️ Administrator privileges are required to add or remove WMIC.
How to Add or Remove WMIC Using Commands
- Open Windows Terminal (Admin) and choose Windows PowerShell or Command Prompt.
- Copy and paste the command below into Windows Terminal. Then press Enter.
To Add WMIC:
DISM /Online /Add-Capability /CapabilityName:WMIC~~~~To Remove WMIC:
DISM /Online /Remove-Capability /CapabilityName:WMIC~~~~ - You can now close Windows Terminal when finished.

What Happens Next?
Windows processes the installation or removal command immediately. Restart your PC to apply the changes fully. System management tools update right away once the process finishes.
Summary
WMIC Windows 11 is an optional feature for the command prompt that lets you check computer hardware and software details using text commands. Microsoft removed this tool by default in newer Windows updates, but you can still turn it back on if older scripts or apps still need it to run properly on your PC.
References:
- WMI command line (WMIC) utility deprecation: Next steps | Windows IT Pro blog
- How to install WMIC Feature on Demand on Windows 11 | Windows IT Pro Blog
What is WMIC in 🪟 Windows 11?
WMIC in Windows 11 is a text-based utility for managing system components via commands, though Microsoft plans to deprecate the legacy feature.
What replaced WMIC in 🪟 Windows 11?
Windows PowerShell officially replaces WMIC in Windows 11. PowerShell handles WMI-related tasks with advanced scripting capabilities, tighter security, and broader functionality. WMIC stays accessible as an optional package for backwards compatibility rather than primary system administration.
How to enable WMIC in 🪟 Windows 11 via cmd?
Enabling WMIC in Windows 11 requires running the Command Prompt (cmd) with administrator privileges and executing a Deployment Image Servicing and Management command.
Why doesn't WMIC work on 🪟 Windows 11?
WMIC fails to run on Windows 11 default installations because modern builds exclude the deprecated feature automatically.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!