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.

Reference:

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
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Jumbo size wasn't an option?

In case anyone was asking, for the current 24H2 builds the WMIC status is:
- When you perform an in-place upgrade, WMIC is enabled by default (no changes to Windows).
- When you perform a clean install, WMIC is disabled right after installation. Because MS hates you. This might change (?), since they're still rolling out updates before the official RTM.
 

My Computer

System One

  • OS
    Windows 7
Back
Top Bottom