How to Add or Remove WMIC command Feature in Windows 11
The WMIC command feature lets you control Windows using text commands and is useful for advanced tasks.
WMIC, which stands for Windows Management Instrumentation Command-line, is a tool that lets you ask for and change Windows system information right from the command prompt.
This feature was phased out in Windows 11 build 22H2, so you might need to add it back if you rely on it for scripting or troubleshooting, like checking your hard drive’s serial number.
While WMIC itself is being replaced by Windows PowerShell for managing WMI, the underlying WMI system still works.
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
Users might remove the Windows Management Instrumentation Command-line (WMIC) feature to simplify a Windows 11 system if WMIC isn’t needed. Alternatively, users can add the WMIC feature back if they previously removed it. Re-adding WMIC allows for performing management tasks on 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. A restart might be necessary for the changes to take effect. Once completed, you will have full control over whether WMIC is available on your system.
Summary
WMIC in Windows 11 is a command-line tool that lets you ask your computer questions and get specific details about its hardware and software. Even though Windows is shifting to newer tools, you can still add or remove the WMIC feature if you need it for certain tasks.
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, as it offers more powerful features, enhanced 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?
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!