How to fix wmic is not recognized as an internal or external command

This tutorial will show you why we are getting 'wmic' is not recognized as an internal or external command, operable program or batch file.

How to fix wmic is not recognized as an internal or external command

In my scenario, I was trying to run the command wmic memphysical get maxcapacity on my computer to check the maximum memory capacity for a potential upgrade. Unfortunately, I encountered the error: "'wmic' is not recognized as an internal or external command, operable program, or batch file." This error occurs because, in Windows 11, WMIC (Windows Management Instrumentation Command-line) is disabled by default.

If you're facing the same issue, follow the steps below to resolve the error and enable WMIC on your Windows 11 system:

How to Fix the Error: "'wmic' is not recognized as an internal or external command, operable program, or batch file"

Step 1: Error Screenshot

Command+Prompt+WMIC+ERROR
Step 2: Check for wmic.exe is present on the c:\windows\system32\wbem using the command  c:\windows\system32\wbem | findstr wmic.* on the command prompt. In my case wmic.exe is not exist on the system32 directory.

Step3: Press Windows Icon + I key on your keyboard to open windows system settings then navigate to System Ã Optional features Ã Add an optional feature Ã View features search wmic on the search bar and check the checkbox of wmicàNextà Add [WMIC feature will take 20-30 mins to install based on your system configuration]. Refer the screenshot.

Open+Windows+System+Optional+Features

Click+On+System+Optional+Features+View+features

Add+Additional+Features+wmic

Add+Additional+Features+wmic+add

Add+Additional+Features+wmic+add+progress

Add+Additional+Features+wmic+added

Step 4: Successfully resolved issue. Now i am able to execute the wmic command get the status max memory supported using wmic memphysical get maxcapacity.
wmic+is+working+now

“Information is power. But like all power, there are those who want to keep it for themselves.”

― Aaron Swartz

I hope this information is useful for you. Please forgive any typos or incomplete sentences.

Thanks for Visiting vNetes.com
Post a Comment (0)
Previous Post Next Post