Home > Common Problem > body text

Wmic not recognized on Windows 11? this is what you need to do

WBOY
Release: 2023-04-15 11:55:07
forward
2310 people have browsed it

We all know that Wmic is a command line and scripting interface that simplifies the use of Windows Management Instrumentation (WMI) and systems managed through WMI.

Wmic actually runs in two modes. The first is interactive, which allows commands to be entered one line at a time, and non-interactive, which allows commands to be scripted for use in a batch file.

You should know that Microsoft removed WMIC from Windows 10 and Windows 11, but you can add the functionality back to your PC if you wish.

However, users who did add Wmic back to their Windows 11 computers reported handling Wmic not recognized as an internal or external command error.

Don’t worry, we can show you how to fix the problem in minutes with a simple but effective troubleshooting process.

How to add Wmic to Windows 11?

Starting in Windows 11 build 22572, WMIC is only available as an optional feature that can be uninstalled or reinstalled.

The process is very simple and requires only a few adjustments in the Settings menu of your Windows 11 device.

Before we begin, please remember that you must be logged in as an administrator to add and remove this optional feature.

  1. Open the Start menu and access Settings.
  2. Select App and click Optional Features.
  3. Press View Function button.
  4. Search for Wmic, check the box next to it and press Next.
  5. Click the Install button.

Now that we have successfully added Wmic to Windows 11, it’s time to look at the bugs users have been flagging.

How to fix Wmic not recognized by Windows 11?

When you receive the Wmic is not Recognized as an internal or external command error, it means that the utility's directory is not found on your path.

We can fix this problem easily and here's what you need to do to fix this problem once and for all.

  1. Opem Start menu and open Command Prompt. Wmic not recognized on Windows 11? this is what you need to do
  2. Run the following command: SET PATH=C:\Windows\System32\wbem\;%PATH%;Wmic not recognized on Windows 11? this is what you need to do

After setting the path variable using the above command, run the following command to confirm whether Wmic is picked up correctly:

where wmic
Copy after login

If the result is returned in the form of C:\Windows\System32\wbem\WMIC.exe, then you have completed the command People admire the work and we can move forward.

However, the path environment variable set using the above SET command only applies to the active cmd session, and must be done each time you start a new command prompt session.

To make this change permanent, all you have to do is:

  1. Open the Start menu and access Settings. Wmic not recognized on Windows 11? this is what you need to do
  2. Select System and click About. Wmic not recognized on Windows 11? this is what you need to do
  3. Click Advanced System Settings. Wmic not recognized on Windows 11? this is what you need to do
  4. Press the Environment Variables button. Wmic not recognized on Windows 11? this is what you need to do
  5. Under System variables, select Path and press the Edit button. Wmic not recognized on Windows 11? this is what you need to do
  6. Add%SystemRoot%\System32\Wbem and press OK. Wmic not recognized on Windows 11? this is what you need to do

That’s it! Now that your Windows 11 operating system will recognize Wmic, you can continue working hard knowing that if this happens again, you'll be ahead of the game.

If you are looking for an advanced optimization tool that can safely and securely fix various errors on your PC, Restoro is your best choice.

It is a powerful, unique desktop tool that scans your entire computer or laptop, as well as every application it can find, to find and replace corrupted files.

Recovery

The above is the detailed content of Wmic not recognized on Windows 11? this is what you need to do. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template