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, or Windows Management Instrumentation Command-line, allows you to query and manage Windows operating system information from the command prompt. You might need it for advanced scripting or troubleshooting.
For example, you could use WMIC to check your hard drive’s serial number or get detailed system information before Windows 11 deprecated its availability in build 22H2.
What is WMIC?
The WMI command-line WMIC utility gives you a way to control Windows through text commands. WMIC works with other tools and commands you might already use.
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
You may want to remove WMIC if you don’t use it and want to clean up your system. Or you might need to add it back if you removed it before.
Important: Admin Rights Required
⚠️ You must sign in as an administrator to add or remove WMIC.
How to Add or Remove WMIC Using Commands
- 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 done, you’ll have full control over whether WMIC is available on your system.
Summary
WMIC is a command-line tool that’s being phased out in Windows. In Windows 11, you can easily add it or remove it as an optional feature. Using the DISM command in Windows Terminal (with admin rights) takes just a few seconds. Whether you need it for work or want to remove it to save space, these steps let you control what’s on your computer.
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
Frequently Asked Questions
What is WMIC?
What Happens Next?
What is WMIC in 🪟 Windows 11?
WMIC, or Windows Management Instrumentation Command-line, is a legacy utility that allows users to manage and control Windows system components through text-based commands. While it integrates with various system tools, Microsoft has deprecated this feature in newer Windows versions, encouraging users to transition toward more modern management alternatives like PowerShell.
What replaced WMIC in 🪟 Windows 11?
Windows PowerShell has officially replaced WMIC in Windows 11. Microsoft recommends using PowerShell for all WMI-related tasks because it offers more robust functionality, better security, and improved scripting capabilities. 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?
To enable WMIC, open Windows Terminal or Command Prompt with administrator privileges. Once open, type or paste the command 'DISM /Online /Add-Capability /CapabilityName:WMIC' and press Enter. The system will process the request and install the utility as an optional feature, making it immediately available for use within your command-line environment.
Why doesn't WMIC work on 🪟 Windows 11?
WMIC may not work on Windows 11 because it is a deprecated feature that is not installed by default. If the utility is missing, you must manually add it back as an optional feature using the DISM command. Once enabled, the command-line utility will function as expected for your system tasks.
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!