Apps Add or Remove WMIC command Feature in Windows 11


  • Staff
Command_prompt_banner.png

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 WMI command-line (WMIC) utility is deprecated as of Windows 10, version 21H1, and as of the 21H1 semi-annual channel release of Windows Server.

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.

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

You must be signed in as an administrator to add and remove the WMIX 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 Click/tap on Apps on the left side, and click/tap on Optional features on the right side. (see screenshot below)

Open Optional features settings

WMIC_Settings-1.png

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

4 Add WMIC command Feature

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: 16
Last edited:
Top Bottom