How to Add or Remove WMIC command Feature in Windows 11
WMIC stands for Windows Management Instrumentation Command-line, a tool that lets you check and change computer settings using text commands. Microsoft removed this feature by default in Windows 11 version 22H2.
You can still put WMIC back on your PC if older scripts or hardware tests require it. Windows PowerShell handles most modern system tasks now, but old tools still need this command to work properly.
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 leads people to strip out 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. System restarts apply the changes fully. System management tools update right away once the process finishes.
Summary
WMIC in Windows 11 functions as a command-line tool for retrieving specific hardware and software details. Operating systems shift toward newer utilities constantly, yet optional feature management remains available for legacy workflows.
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!