Symptom
After a Windows update, one or more of these start:
- Cummins Calterm fails to build a CBF file. The log shows:
Can't create CBF File with selected config file.
Cummins Metadata Tool - CLI
java.io.IOException: Cannot run program "wmic": CreateProcess error=2
- Cummins INSITE freezes or will not open.
- CAT ET shows no window, eats CPU, and later says "already running".
Customers often report it as "Java is missing". It is not Java. The error is a Java exception, which proves Java runs fine. What is missing is wmic.
Cause
Windows 11 version 25H2 (build 26200, and newer builds) removed WMIC, the old Windows Management Instrumentation command-line tool. Microsoft had marked it deprecated for years. Some diagnostic programs still call it while starting, for example the Cummins Metadata Tool during its license check. When the call fails, the program stops.
Older laptops that never took the 25H2 update are not affected.
Checks
- Press Windows + R, type
winverand press Enter. Note the version. - Open PowerShell (Start, type
powershell) and run:
Test-Path C:\Windows\System32\wbem\WMIC.exe
False means WMIC is gone. True means it is there, and your problem is something else.
- Test that it really works:
wmic os get caption
If it prints your Windows name, WMIC is fine.
Put WMIC back
Try the options in order. You need administrator rights.
Option 1: Optional features
- Open Settings, then System, then Optional features.
- Click View features (or Add an optional feature).
- Search for WMIC, tick it, click Next, then Install.
- Wait for it to finish, then run the
Test-Pathcheck again.
Option 2: DISM
Open PowerShell as administrator (right-click Start, Terminal (Admin)) and run:
DISM /Online /Add-Capability /CapabilityName:WMIC~~~~
It downloads from Windows Update and can take about 15 minutes.
Warning: on some laptops DISM reports success and Get-WindowsCapability says Installed, but WMIC.exe never appears, even after a restart. Always run the Test-Path check. Do not trust the success message.
Option 3: Copy it from your own Windows component store
Windows keeps copies of its own components in C:\Windows\WinSxS. On many 25H2 laptops the WMIC files are still there, from the same build. Nothing is downloaded from outside.
In PowerShell as administrator:
gci C:/Windows/WinSxS -Directory | ? { $_.Name -match 'line-utility' -and $_.Name -like 'amd64*' } | % { copy (Join-Path $_.FullName '*') C:/Windows/System32/wbem/ -Force }
gci C:/Windows/System32/wbem/cli*mof | % { mofcomp $_ }
wmic csproduct get uuid
The first line copies the 64-bit WMIC files into wbem. The amd64 filter matters: without it the 32-bit copies overwrite the 64-bit ones. The second line registers the WMIC class files. If the last line prints a UUID, you are done. The whole job takes about five minutes.
If you get "Access denied", PowerShell is not running as administrator.
Error messages along the way
The error changes as each piece falls into place, which tells you where you are:
-
Cannot run program "wmic": the exe is not there yet. - Empty output with error level 44210: the CLI class files are missing; run the
mofcompline. - Invalid XSL format (or) file name: the XSL format files are missing; repeat the copy line.
- Your Windows name or UUID printed: WMIC works.
On some builds the component store does not contain WMIC.exe at all. Then only Option 1 or 2 can bring it back.
After WMIC is back
Open Calterm, INSITE or CAT ET again. If INSITE was frozen, end its processes first (see our INSITE article). You do not need to reinstall any diagnostic software.
If it still fails
- Options 1 and 2 finish but
WMIC.exeis still missing. - You have no administrator password for the laptop.
- WMIC works and the program still fails.
We do this repair remotely every week.
Remote help
If it still fails, send us a TeamViewer ID and password on WhatsApp: wa.me/51965454373. We fix this remotely via TeamViewer, usually same day. Support runs 7 days a week, 9 AM to 7 PM EST, in English and Spanish.
Related in our store:
Technical Solutions has installed dealer-level diesel diagnostic software remotely since 2014, for more than 2,800 paying customers in 60+ countries.
Trademarks belong to their respective owners. Technical Solutions is an independent service provider and is not affiliated with or endorsed by any manufacturer.