Skip to content
Follow
Windows

How to Add or Remove WMIC command Feature in Windows 11

Richard
Written by
Richard
Apr 5, 2026 Updated Jun 19, 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

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.

⚡ 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.

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

📝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. 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:

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?

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 *