Blog Post

Windows IT Pro Blog
3 MIN READ

How to install WMIC Feature on Demand on Windows 11

Siddhartha_Ray_Barua's avatar
Jul 12, 2024

Do you need to continue using Windows Management Instrumentation Command (WMIC) line? Though this feature is currently being deprecated, there is a temporary solution to help your organization while you finish migrating to PowerShell or a similar tool. This solution is brought to you by Features on Demand (FoDs).

WMIC has been available as a FoD for Windows 11 since 2022. It will be disabled by default later this year, but it will remain available for those who need it. In preparation for this next deprecation stage, let’s review the steps you’ll need to take to use this optional feature a bit longer.

Symptoms of a missing WMIC FoD

If WMIC.exe is missing from your setup, you’ll see this error message when you attempt a WMIC command in the command prompt: ‘wmic’ is not recognized as an internal or external command, operable program, or batch file.

A command prompt returns an error message after an attempted WMIC command.

That’s expected behavior if WMIC is missing, disabled, or uninstalled from your system. If you still need to use WMIC, you’ll need to install it as a FoD. Let’s see how.

Locate optional features in Windows Settings

FoDs are listed as optional features in Windows Settings. You can view the history of optional features that have been installed on the system and manage these components by adding, removing, or altering existing features.

There are two easy ways to locate optional features:

Option 1. Search for "Optional features" directly from the taskbar's search menu.

Direct search for “optional features” from the taskbar.

Option 2. Locate optional features in Windows System settings. To do this:

  1. Select Start (or the Windows icon on your keyboard or the taskbar).
  2. Select the Settings app to open it.
  3. Select the System tab.
  4. Locate and select Optional features toward the bottom of all system features.

Locate Optional features in Windows Settings>System.

Install and manage WMIC FoD

From the Optional features menu, you’re ready to view, install, uninstall, and manage FoDs like WMIC. Not sure if WMIC is already installed? Search through or sort the Installed features section to find WMIC.

WMIC appears in the list of Installed features of the Optional features tab.

If WMIC is already one of your optional features, you’ll see it in the list of Installed features with an option to Uninstall or Remove it.

If WMIC isn’t on the list of Installed features, you can easily add it by taking these steps:

  1. At the top of the Optional features tab, locate Add an optional feature.
  2. In that field, select View features. This will open a pop-up window.

  3. In the pop-up window to Add an optional feature, type “WMIC” into the search box.
  4. When WMIC appears in the results below, select it by checking the box next to it. (Note: WMIC will not appear in the results if it’s already installed.)
  5. Select Next to install WMIC feature in the same pop-up window.

The pop-up window to add an optional feature shows WMIC as a selected feature.

You should now see WMIC among your features in Windows Settings > System > Optional features > Installed features. That’s also where you can uninstall it when you’ve migrated to PowerShell or other supported solutions.

Ready for the next steps in WMIC deprecation?

As we’ve previously announced, the next step in WMIC deprecation is coming later this year. WMIC will be disabled by default on the next version of Windows 11 and Windows Server.

The timeline shows past and future dates of WMIC deprecation.

Please refer to the following documentation for more guidance and examples:


Continue the conversation. Find best practices. Bookmark the Windows Tech Community, then follow us @MSWindowsITPro on X and on LinkedIn. Looking for support? Visit Windows on Microsoft Q&A.

Updated Jul 11, 2024
Version 1.0

11 Comments

  • dbreed53's avatar
    dbreed53
    Copper Contributor

    Hey, buddy! Thanks, Option #1 is installing, but slowly.

     

  • Thanks for the clear guide! 👍
    This worked perfectly — installing WMIC from Settings → System → Optional Features → Add an optional feature → WMIC restored the command instantly. Great temporary solution while migrating scripts to PowerShell!

  • crash0r's avatar
    crash0r
    Copper Contributor

    Hello,

    this workaround is not working anymore since there is no WMIC in fresh installs of 24H2 or 25H2. Microsoft has completely removed this feature. Do you have a solution for this?

    • Shalika_Sankalpa_Silva's avatar
      Shalika_Sankalpa_Silva
      Copper Contributor

      Hi crash0r​ You can try,

      How to Install and Restore WMIC on Windows 11 24H2 & 25H2

       

      Starting with Windows 11 versions 24H2 and 25H2, Microsoft has completely eliminated the Windows Management Instrumentation Command-line (WMIC) utility. It is no longer preinstalled, and the option to add it natively through the Windows Settings GUI has been removed.

      If you are running legacy software, installers, or third-party IDEs (like older versions of MuleSoft Anypoint Studio) that strictly require wmic.exe, you will face system crashes or execution blocks.

      Below are the only working installation methods to force-restore the utility onto newer Windows 11 builds.

       

      Method 1: The Online DISM Force-Injection (Recommended)

       

      While the graphical interface no longer displays WMIC, Microsoft's deployment servers still host the feature package payload for backwards compatibility. You can bypass the GUI and use the Deployment Image Servicing and Management (DISM) tool to pull the package down directly.

       

      Step-by-Step Instructions:

       

      1. Press the Windows Key, type cmd or Terminal.

      2. Right-click the application and select Run as Administrator.

      3. Copy and paste the following command, then press Enter:cmd

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

      Use code with caution.

      4. Allow the progress bar to reach 100%.

      5. Close your terminal, open a fresh command prompt, and type wmic to verify it is active.

       

      Method 2: Offline Local Source Installation (Air-Gapped Systems)

       

      If your machine is offline, behind a strict corporate proxy, or returning installation error code 0x800f0954, DISM cannot reach Windows Update to fetch the files. You must install it using a local asset.

       

      Step-by-Step Instructions:

       

      1. Obtain the official Windows 11 24H2/25H2 Features on Demand (FoD) ISO package from the Microsoft Volume Licensing Service Center (VLSC) or Visual Studio Subscriptions.

      2. Double-click the ISO to mount it to your system (let's assume it mounts as drive E:).

      3. Open Command Prompt (Admin) and execute the command targeting the local drive path:cmd

      DISM /Online /Add-Capability /CapabilityName:WMIC~~~~ /Source:"E:\LanguagesAndOptionalFeatures" /LimitAccess

      Use code with caution.

      4. Once completed, the binary files will be successfully registered in your local System32 directory.

       

      Method 3: Manual Binary Injection (Last Resort for Third-Party Apps)

       

      If your operating system build rejects the DISM capability package entirely, you can manually clone the binary architecture from a working device running an older version of Windows (such as Windows 11 23H2 or Windows 10).

       

      File Requirements:

       

      To restore functionality, you need to copy exactly two files from an older machine:

      • The Executable: C:\Windows\System32\wmic.exe

      • The Language File: C:\Windows\System32\en-US\wmic.exe.mui (Note: Replace en-US with your system's native language folder if using a different locale).

       

      Deployment Steps:

       

      1. Move wmic.exe directly into the C:\Windows\System32\ folder of the target 24H2/25H2 machine.

      2. Move wmic.exe.mui into the C:\Windows\System32\en-US\ folder of the target machine.

      3. Open a command prompt and test the utility.

      Warning: Because this method bypasses the official Windows component store, future major Windows cumulative updates may flag these manually injected files and delete them automatically.

       

      Long-Term Advice

       

      While these installation methods will temporarily rescue breaking software dependencies, Microsoft intends to phase out the backend payload files completely. You should prioritize updating your underlying software stack or rewriting internal scripts to use modern PowerShell CIM Cmdlets (such as Get-CimInstance).

      Are you setting this up for a single developer workstation, or do you need a way to deploy this package silently across multiple enterprise computers using a tool like SCCM or Intune? Let me know, and I can provide the automated deployment parameters.

  • MikeMcC399's avatar
    MikeMcC399
    Copper Contributor

    Is there a similar article for Windows Server 2025 to describe how to install WMIC step-by-step on the server?

    https://learn.microsoft.com/en-us/windows-server/get-started/removed-deprecated-features-windows-server-2025
     includes the section

    - https://learn.microsoft.com/en-us/windows-server/get-started/removed-deprecated-features-windows-server-2025#features-were-no-longer-developing which says:

    Windows Management Instrumentation Command line (WMIC)

    Beginning with Windows Server 2025, WMIC is available as a feature on demand (FoD) which can be added with the D I S M /Add-Capability command. It will be removed from Windows in a future release. https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/07-working-with-wmi replaces the WMIC tool. Use PowerShell or programmatically query WMI as a replacement for WMIC. To learn more about WMIC depreciation, see WMI command line (WMIC) utility deprecation: Next steps

  • wangxmr's avatar
    wangxmr
    Tin Contributor

    How to enable WMIC Feature on Demand on Windows 11 Version 24H2 offline image?

  • What going to happen with Configuration Manager. It uses WMIC quite a bit. What is the solution there?