Skip to content
Follow
Windows

How to Add or Remove WMIC command Feature in Windows 11

Richard
Written by
Richard
Apr 5, 2026 Updated Jul 12, 2026 2 min read
How to Add or Remove WMIC command Feature in Windows 11
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.

⚡ Quick Answer

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

📝Good to Know
⚠️ You must sign in as an administrator to add or remove WMIC.

How to Add or Remove WMIC Using Commands

  1. Open Windows Terminal (Admin) and choose Windows PowerShell or Command Prompt.
  2. 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~~~~

  3. You can now close Windows Terminal when finished.
Windows PowerShell terminal showing DISM command to add WMIC
Windows PowerShell terminal showing DISM command to add WMIC

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:

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?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11
How to Open Windows Terminal as Admin Automatically
Windows How to Open Windows Terminal as Admin Automatically
How to Change Windows Terminal Themes
Windows How to Change Windows Terminal Themes
How to Disable Command Prompt in Windows 11
Windows How to Disable Command Prompt in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *