How to Uninstall WMIC in Windows 11
In this article
You cannot fully uninstall WMIC on Windows 11 through Settings or Control Panel because it is a Windows optional feature, not a traditional program. To remove it, you must use the Windows Features dialog or PowerShell with the DISM cmdlet. The simplest method is to open the Start menu, search for “Turn Windows features on or off,” and clear the checkbox for “Windows Management Instrumentation Command-line (WMIC).” After a restart, WMIC will be gone. Note that menu labels can differ slightly by Windows version and region, so if you don’t see the exact wording, look for a similarly named entry under Windows features.
What You'll Need
- Administrator rights on the Windows 11 PC (you’ll be prompted for elevation).
- A restart of the computer after the change.
- Optional: a PowerShell window opened as Administrator if you prefer the command-line method.
Step-by-Step
- Open Windows Features. Click Start, type “Turn Windows features on or off,” and select the matching result. If you are already in Settings, you can also navigate to Apps > Optional features > More Windows features, though the exact path may vary slightly by build.
- Locate the WMIC entry. In the Windows Features list, scroll down to find “Windows Management Instrumentation Command-line (WMIC).” It may be near the bottom under the “Windows” section. The list is alphabetical, so W comes near the end.
- Clear the checkbox. Uncheck the box next to WMIC. Do not uncheck other management instrumentation entries unless you intend to remove them as well—doing so can break scripts and system tools that rely on WMI.
- Confirm and apply. Click OK. Windows will search for required files and then remove the feature. This can take a minute or two. If prompted to restart, choose “Restart now” or save your work and restart manually.
- Verify removal (optional). After the restart, open Command Prompt or PowerShell and type
wmicfollowed by Enter. If WMIC is removed, you should see a message like “'wmic' is not recognized as an internal or external command.” That confirms the tool is no longer available.
Alternative: PowerShell method. If you prefer a command, open PowerShell as Administrator and run:
Disable-WindowsOptionalFeature -Online -FeatureName WMIC
Press Enter, confirm the operation, and restart when prompted. This achieves the same result as unchecking the box in Windows Features. If the feature name is not recognized, check the exact name by running Get-WindowsOptionalFeature -Online | Where-Object FeatureName -like '*WMIC*' first.
Common Mistakes
- Uninstalling the wrong WMI component. WMIC is only the command-line interface. Removing “Windows Management Instrumentation” itself (a separate feature) can break system monitoring, some installers, and management scripts. Only remove the WMIC entry.
- Using Control Panel > Programs and Features. WMIC will not appear there because it is not a standalone application. You must use Windows Features or PowerShell.
- Forgetting to restart. The feature may appear removed in the list but still respond until the system restarts. Always restart to complete the change.
- Running the command without admin rights. Both the Windows Features dialog and the PowerShell cmdlet require elevation. If you are not an administrator, you will see an error or the option will be greyed out.
- Assuming removal deletes all WMI data. Uninstalling WMIC only removes the command-line tool. The WMI service and repository remain intact, so other tools that query WMI will continue to work.
Tips
- Before removing WMIC, check whether any of your scripts, monitoring tools, or legacy applications call
wmiccommands. If they do, they will fail after removal. Consider switching those scripts to PowerShell equivalents (e.g.,Get-CimInstance) first. - You can reinstall WMIC at any time by rechecking the box in Windows Features or running
Enable-WindowsOptionalFeature -Online -FeatureName WMICin an elevated PowerShell window. - If you only want to restrict WMIC usage rather than remove it, you can use AppLocker or Windows Defender Application Control policies, but that is an advanced step and not covered here.
- Keep a note of the change. If a future application complains about a missing
wmiccommand, you’ll know why and can re-enable it quickly.
Troubleshooting
- The WMIC checkbox is greyed out or missing. This can happen if the feature is managed by group policy or if you are not signed in as an administrator. Try opening Windows Features with an admin account. If it is still missing, your Windows edition or build may have it listed under a different name—search the list for “WMIC” or “Management Instrumentation.”
- PowerShell says the feature name is not found. Run
Get-WindowsOptionalFeature -Online | Where-Object FeatureName -like '*WMIC*'to list the exact feature name, then use that name withDisable-WindowsOptionalFeature. If no result appears, WMIC may already be removed or not present in your build. - Removal fails with an error about pending updates. Restart the PC, install any pending Windows updates, and try again. Sometimes a pending servicing operation blocks feature changes.
- WMIC still runs after removal. Confirm you restarted. If it still works, check that you removed the correct feature and not just a shortcut. Also verify that no third-party tool has placed a
wmic.exein a folder on your PATH—unlikely, but possible. - You need WMIC back. Re-enable it via Windows Features (check the box) or run
Enable-WindowsOptionalFeature -Online -FeatureName WMICas Administrator, then restart.
Frequently Asked Questions
Is it safe to uninstall WMIC in Windows 11?
Yes, for most home users. WMIC is a legacy command-line tool. Removing it does not affect the WMI service or Windows itself. However, any scripts or older applications that rely on wmic commands will stop working, so check before removing.
Will uninstalling WMIC break other Windows features?
No. WMIC is a separate optional feature. The underlying WMI infrastructure remains, so tools like Task Manager, Event Viewer, and PowerShell’s CIM cmdlets continue to work normally.
Can I uninstall WMIC using Control Panel?
No. WMIC does not appear in Programs and Features. You must use the “Turn Windows features on or off” dialog or PowerShell with the DISM/optional feature cmdlets.
How do I know if WMIC is already removed?
Open Command Prompt or PowerShell and type wmic. If you get “'wmic' is not recognized,” it is removed or not present. You can also check Windows Features for the unchecked box.
Does removing WMIC delete my WMI repository or data?
No. Only the command-line executable and its associated files are removed. The WMI service, repository, and any data stored there are untouched.
Can I reinstall WMIC later?
Yes. Recheck the WMIC box in Windows Features or run the enable command in PowerShell as Administrator, then restart. The feature will be restored.