How to Add or Remove WMIC command Feature in Windows 11
You can add or remove the WMIC command feature in Windows 11 to manage your system with command-line tools.
WMIC, which stands for Windows Management Instrumentation Command-line, lets you query and manage Windows operating system information right from the command prompt. You might need it for advanced scripting or troubleshooting.
For instance, you could use WMIC to check your hard drive’s serial number or grab detailed system information, which was useful before Windows 11 phased it out in build 22H2.
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.
What is WMIC?
WMIC, or Windows Management Instrumentation Command-line, is a text-based tool that lets you control Windows using commands.
WMIC is deprecated in Windows 10 and newer versions. It’s being replaced by Windows PowerShell for WMI. Note: This only affects the command itself. WMI itself still works fine.
Why You Might Need This
Users can remove the Windows Management Instrumentation Command-line (WMIC) feature to simplify a Windows 11 system when WMIC is not needed. Alternatively, users can add the WMIC feature back if they previously removed WMIC. Adding WMIC back allows users to perform management tasks on their computers using the command line.
Important: Admin Rights Required
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 will install or remove the WMIC command. You may need to restart your computer for the changes to take effect. Once it’s done, you’ll have full control over whether WMIC is available on your system.
Summary
WMIC is a command-line tool for Windows 11 that lets you get information about your computer. Even though it’s being replaced, you can still add or remove WMIC as an optional feature if you need it.
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 tool for managing your computer’s system components using commands, though it’s an older feature Microsoft is replacing.
What replaced WMIC in 🪟 Windows 11?
Windows PowerShell has officially replaced WMIC in Windows 11. Microsoft suggests using PowerShell for all WMI-related tasks because it provides more powerful features, enhanced security, and better scripting abilities. While WMIC remains available as an optional feature for legacy compatibility, it is no longer the primary tool for system management.
How to enable WMIC in 🪟 Windows 11 via cmd?
You can turn on WMIC in Windows 11 using the Command Prompt (cmd) by opening it as an administrator and typing a specific DISM command.
Why doesn't WMIC work on 🪟 Windows 11?
WMIC might not work on Windows 11 because it’s an older feature that isn’t installed automatically anymore.
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!