Apps Add or Remove WMIC command Feature in Windows 11


  • Staff
Command_prompt_banner.png

This tutorial will show you how to add or remove the WMIC optional feature for all users in Windows 11.

The WMI command-line (WMIC) utility provides a command-line interface for Windows Management Instrumentation (WMI). WMIC is compatible with existing shells and utility commands.

The WMIC tool is deprecated in Windows 10, version 21H1, and the 21H1 General Availability Channel release of Windows Server. This tool is superseded by Windows PowerShell for WMI. Note: This deprecation only applies to the command-line management tool. WMI itself isn't affected.

Starting with Windows 11 build 22572, WMIC is now available as an optional feature that can be uninstalled or reinstalled via Settings > Apps > Optional Features.


You must be signed in as an administrator to add and remove the WMIC optional feature.




Contents

  • Option One: Add or Remove WMIC command Feature in Settings
  • Option Two: Add or Remove WMIC command Feature using Command


EXAMPLE: WMIC command-line

WMIC.png





Option One

Add or Remove WMIC command Feature in Settings


1 Open Settings (Win+I).

2 Perform one of the available options below: (see screenshots below)
  • Click/tap on Apps on the left side, and click/tap on Optional features on the right side.
  • Click/tap on System on the left side, and click/tap on Optional features on the right side.

WMIC_Settings-1.png
Optional_Features_Settings-1b.png

3 Do step 4 (add) or step 5 (remove) below for what you want.

4 Add WMIC command Feature

This is the default setting.


A) Click/tap on the View features button. (see screenshot below)​

WMIC_Settings-2.png

B) Check WMIC, and click/tap on Next. (see screenshot below)​

WMIC_Settings-3.png

C) Click/tap on Install to confirm. (see screenshot below)​

WMIC_Settings-4.png

D) You can now close Settings if you like.​

5 Remove WMIC command Feature

A) Under Installed features, click/tap on WMIC to expand it open, and click/tap on the Uninstall button. (see screenshot below)​

WMIC_Settings-5.png

B) You can now close Settings if you like.​




Option Two

Add or Remove WMIC command Feature using Command


1 Open Windows Terminal (Admin), and select Windows PowerShell or Command Prompt.

2 Copy and paste the command below you want to use into Windows Terminal (Admin), and press Enter. (see screenshots below)

(Add WMIC)
DISM /Online /Add-Capability /CapabilityName:WMIC~~~~

OR​

(Remove WMIC)
DISM /Online /Remove-Capability /CapabilityName:WMIC~~~~

3 You can now close Windows Terminal (Admin) if you like.

Add_WMIC_command.png

Remove_WMIC_command.png



That's it,
Shawn Brink
 

Attachments

  • Command_prompt.png
    Command_prompt.png
    2 KB · Views: 129
Last edited:
Back
Top Bottom