Get a free E-Book.

|

How to still use WMIC

A guide explaining Windows 11 Optional Features, the deprecation of WMIC, and why managing these components matters for Windows environments.

Windows 11 includes a broad set of Optional Features, components that aren’t required for the operating system to run, but can significantly extend its functionality. Many long-standing Windows tools, legacy components, developer features, and administrative utilities now exist as add-on modules you can install only when you need them.

Optional features range from everyday tools like Notepad, Windows Media Player, or Wireless Display, to more technical components such as Hyper-V, Windows Subsystem for Linux, .NET Framework, and specialized Features on Demand (FoDs). Windows keeps these components modular so the base system stays lighter, more secure, and easier to maintain.

This modular approach has become especially important as Microsoft continues to modernize Windows—and one of the largest ongoing changes involves the deprecation and removal of WMIC.

Table of Contents

Why WMIC Is Now an Optional Feature (and What That Means)

For years, WMIC (Windows Management Instrumentation Command-line) was a standard administrative tool used to query system information, manage processes, run inventory scripts, or retrieve diagnostic data. It provided a simple, text-based interface to Windows Management Instrumentation (WMI).

But WMIC is now officially deprecated and entering its final phase of removal:

  • Since Windows 10 21H1, WMIC has been marked as deprecated.

  • In Windows 11 22H2, WMIC stopped shipping by default and became installable only as a Feature on Demand.

  • New installations of Windows 11 24H2 do not include WMIC unless you manually add it.

  • Starting with Windows 11 25H2, WMIC will be removed during upgrade and will no longer be included in future versions.

Only the WMIC tool is being removed, WMI itself remains part of Windows. Microsoft recommends transitioning fully to PowerShell, which offers complete and modern support for WMI tasks using commands like Get-CimInstance, Get-WmiObject, and Invoke-CimMethod.

This shift serves several purposes:

Security Improvements

WMIC has long been considered a LOLBIN (“living-off-the-land binary”), a system tool frequently misused by attackers for:

  • reading antivirus status

  • managing shadow copies

  • bypassing Defender

  • running recon commands

Removing WMIC reduces this attack surface.

Modernization and Maintainability

PowerShell, COM APIs, .NET libraries, and script-based WMI access offer more powerful, updated, and secure methods for system management.

Cleaner Windows Installations

Keeping aging tools out of default installs helps streamline Windows and reduce legacy overhead.

What If You Still Need WMIC? (And Why You Might)

Even though WMIC is deprecated, many organizations, especially those with legacy scripts, processes, or automation pipelines, may still rely on it. Examples include:

  • Inventory or asset management scripts

  • Old batch files running WMI queries

  • Processes built around WMIC’s output formatting

  • Environments where PowerShell migration isn’t complete

For these cases, Microsoft still makes WMIC available through Features on Demand (FoDs). This means you can re-enable WMIC on supported Windows versions. but only manually.

Symptoms that WMIC is missing include the classic error:

'wmic' is not recognized as an internal or external command…

When you see this, it simply means the WMIC FoD isn’t installed.

Managing Optional Features in Windows 11

Regardless of whether you’re installing WMIC or any other optional component, Windows offers multiple ways to add or remove features:

Through Settings (Recommended for most users)

Settings – System – Optional features.


From here you can:

  • View installed features

  • Add new optional features

  • Remove ones you no longer need

  • Search for specific FoDs like WMIC, XPS Viewer, Wireless Display, etc.

This is where WMIC appears when available.

Through “More Windows Features” (Legacy Components)

This interface allows enabling or disabling older components such as:

  • Hyper-V

  • Windows Sandbox

  • .NET Framework 3.5

  • Windows Subsystem for Linux

This method is useful if the feature isn’t found in the standard Optional features list.

Through PowerShell or Command Prompt

or advanced users or scripted deployments, you can manage optional features with:

  • DISM (dism /Online /Add-Capability, /Get-Capabilities, /Remove-Capability)

  • PowerShell (Enable-WindowsOptionalFeature, Disable-WindowsOptionalFeature)

This is often necessary for automated workflows or remote systems.

Through XEOX

This is the easiest and quickes way to use WMIC in your whole network, not just on one device. For learning how to do that, read on. 

Why You Should Care About Optional Features Now

Windows 11 is moving toward a more modular, optional-component architecture. That means:

  • More features will be offloaded as on-demand components

  • Administrators will increasingly need to install or remove capabilities manually

  • Legacy features like WMIC are disappearing from default installations

  • Migration to PowerShell is becoming mandatory, not optional

Understanding how optional features work helps you maintain compatibility, secure your environment, and avoid disruptions, especially as more organizations reach Windows 11 24H2 and 25H2.

How to add WMIC through XEOX

Now that you understand what Windows Optional Features are and why components like WMIC may not appear on your system by default, the next step is learning how to manage these features centrally and efficiently. This is where Xeox becomes incredibly useful.

Below, I will walk you through how to manage Windows Optional Features (including WMIC FoD) using Xeox, allowing you to automate, deploy, update, and maintain these components across multiple systems far more easily than via manual methods.

Step 1

You need an account with XEOX to access in the first place. XEOX offers a free 30 day trial for anyone that wants to test it out. 

Step 2

Once you are logged into XEOX, it’s very easy. Go to Automations – Scripts and click the Create button in the grey top menu. 
This will open the script editor where you can copy the following command line:

				
					dism /Online /Add-Capability /CapabilityName:WMIC
				
			

Set the language to Batch and click the Save button.
You are already almost done, only one step left. If you need help with how to create scripts, look here

Step 3

Look for the script you just created in the list (still in Automations – Script). Click on the three dots on the left side of the entry. 

Select run and then select the devices you want to enable WMIC on. You can either enter the names of the devices or use a tag.

Click on the links For more information on fow to run scripts or use tags.

Optional: How to Install or Remove Optional Features Without Xeox (Windows Built-In Methods)

This is a little more complicated and has to be done on each device seperately.

These native options are helpful, but managing them at scale or across multiple devices, is where XEOX provides far greater efficiency and automation.

Install (or Remove) an Optional Feature via Settings

  • Open Settings – System – Optional features

  • Select View features

  • Search for the feature (e.g., WMIC)

  • Check the box – Add (If already installed, it will say Remove instead of Add)

Add Legacy Features

  • Open Settings – System – Optional features

  • Select More Windows features

  • Enable or disable features

  • Restart when prompted

Install WMIC via DISM

				
					dism /Online /Add-Capability /CapabilityName:WMIC~~~~0.0.1.0

				
			

Remove WMIC via DISM

				
					dism /Online /Remove-Capability /CapabilityName:WMIC~~~~0.0.1.0

				
			

Conclusion

As Windows continues moving toward a more modular and secure architecture, understanding how Optional Features work and how legacy components like WMIC are being phased out is essential for maintaining reliable and future-proof systems. While WMIC remains available as a Feature on Demand for now, its eventual removal makes it critical for administrators to adopt modern tools such as PowerShell and streamlined management solutions. By becoming familiar with how Windows installs, removes, and manages these components, you can ensure smooth transitions, avoid disruptions, and keep your environment compliant with Microsoft’s evolving standards. From here, leveraging platforms like Xeox allows you to take this knowledge further, enabling centralized, automated, and scalable management of optional features across all your devices.

Additional Sources

Was this article helpful?

Sorry about that...

What could we improve?

Thank you for your Feedback!

Table of Contents

XEOX - Streamline your IT management with ease

The ultimate IT Administration Tool

Optimized patch management, secure remote access, seamless software deployment, task automation and scripting and a comprehensive CMDB to keep an eye on your IT assets.

Recent Posts

Subscribe to our Newsletter

Get the latest news about current IT-Trends & more AND get a free E-Book: Essential IT Security Practices

BLACK WEEK Special at XEOX!

This is your chance to make the most of our special deal and transform your experience with our services. 

Our Black Week Special at XEOX kicks off today!

20% Discount

 on your First Year Subscription!

From November 20th to November 27th, we are offering an incredible 20% off on all new subscriptions for the first year.

Whether you’ve been considering joining the XEOX family or looking for an opportunity to save, now is the perfect time.