Microsoft to Disable WMIC by Default in Windows 11 Version 24H2

Apps & Games / Desktop / Windows / Microsoft to Disable WMIC by Default in Windows 11 Version 24H2
12 Jul 2024

Microsoft to Turn Off WMIC in Windows 11: What You Need to Know

At the beginning of 2024, Microsoft announced plans to turn off WMIC in the next-gen Windows 11 version as part of its ongoing deprecation. However, WMIC or Windows Management Instrumentation Command is not going away just yet. Despite deprecation, customers and admins can continue using it, and Microsoft just posted a brief guide on how to make it work.

To help organizations migrate from WMIC to PowerShell, Microsoft made WMIC a feature-on-demand (FoD) enabled by default. Windows 11 version 24H2, which is coming later this year, will arrive with WMIC disabled by default. Here is what you need to know about it.

For starters, Microsoft explained how to know that WMIC is missing. Executing a WMIC command on a system with missing, turned off, or uninstalled WMIC will result in the following CLI message:

‘wmic’ is not recognized as an internal or external command, operable program, or batch file.

You can fix that error on Windows 11 by doing the following:

  1. Go to Settings > System Optional features.
  2. Click “View features” next to the “Add an optional feature” option.
  3. Type WMIC into the search box and place a checkmark next to it in the result list.
  4. Click “Next” to install WMIC in Windows 11.

Once everything is done, you will see WMIC in the list of installed optional features. From there, you can uninstall it whenever you want it.

Turning off WMIC in the next-gen Windows version is one of the final steps during the feature’s deprecation. The next and final step is the complete removal of WMIC from future Windows client and server editions. For now, Microsoft does not know when WMIC will be gone for good, and its latest roadmap for WMIC still says the final step is “to be determined.”

You can learn more about installing WMIC in a post on the Tech Community forums.

Wmic logicaldisk where drivetype= 3?

The command `wmic logicaldisk where drivetype=3` is used in Windows Management Instrumentation Command-line (WMIC) to retrieve information about local disks on a computer. DriveType 3 specifically refers to local hard disks (as opposed to removable drives, network drives, etc.). Running this command will output details such as the device ID, free space, size, file system, and volume name of each local hard disk.

How to use wmic in cmd?

To use WMIC in Command Prompt (CMD), follow these steps: 1. Open Command Prompt as an administrator. 2. Type `wmic` and press Enter to access the WMIC shell. 3. Enter your WMIC command, such as `wmic logicaldisk get name` to list all disk drives. You can execute various commands to manage and obtain information about the system, like `wmic cpu get name` or `wmic bios get serialnumber`. Once done, type `exit` to leave the WMIC shell. Always run CMD as an administrator to ensure proper permissions.
Update: 12 Jul 2024