WMIC missing on Windows 11 24H2

jlsupremo

Member
Messages
38
Reaction score
3
I need to activate WMIC in NTLITE on a Windows 11 24H2 Final ISO, but it asks me to put the cap and I can't find this .cap anywhere

I found this information: (could someone help me with Ntlite how to do and get this cab? in the Windows ISO folder it doesn't exist)

Starting with Windows 11, version 24H2, WMIC is not pre-installed.

WMIC
This Feature on Demand includes WMIC.

Feature: WMIC. The Windows Management Instrumentation (WMI) command-line utility.

Feature name: WMIC~~~~
Sample package name: Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~amd64~~.cab
Installation size: 611 KB
Satellites: yes, just add this FOD using DISM /add-capability.
Availability: Windows 11, version 22H2 and later
 
W11 24H2 deprecated WMIC, and removed this feature from the image.

1. Download the 24H2 LP & FOD ISO using this script:
PowerShell GUI for Downloading Windows ADK, WinPE, LP & FOD ISO's - W10_11ADK_WinPE_LP_FOD.ps1

2. Using File Explorer, mount the ISO file. Copy the Microsoft-Windows-WMIC-FoD-Package base and localized CAB's to another folder. Unmount the ISO image.

3. From the Updates screen, add both files.
I downloaded the iso, copied the .cab files to C:\Program Files\NTLite\Cache\Updates\11.24H2.x64.FOD and C:\Program Files\NTLite\Cache\Updates\Common.FOD, but Ntlite gives the following error when I check the WMIC option in Features > On Demand >
WMIC - The operation requires missing files.
 
You have to apply the pending Updates to the image first. Features on Demand can only change features that are already integrated, so you have to do this after reloading the updated image.
 
Features on Demand (FOD) are either pre-installed (integrated) in the image, or not installed (only exist as a placeholder).

When the FOD is installed, there is a flag which instructs Windows whether to enable or disable this Feature. All NTLite does is simply change the FOD's flag, but doesn't touch the Feature's component files.

An uninstalled FOD will exist as a placeholder, so Windows knows its available from Settings or the optional features Control Panel. Until it's installed on the image (or a live system), you can't change its flag state.

After adding a new FOD package file, it will default to being in the enabled state.
 
You have to apply the pending Updates to the image first. Features on Demand can only change features that are already integrated, so you have to do this after reloading the updated image.
I apologize, but I didn't understand what you said, here's a photo of how I tried to do it, or could it be a version bug?ntlite-erro.png
 
You have integrated the .cab to the ISO, from Updates ?

Capture.PNG

Then Applied and reload the image ?
 
Você integrou o .cab ao ISO, em Atualizações?

View attachment 12939

Então aplicou e recarregou a imagem?
Se eu tento colocar o .cab em atualizações ele dá esse erro, mesmo ele estando desabilitado, já testei, gerei o ISO e instalei o Windows, ele está desabilitado pois está lá nos recursos não verificados.ntlite-erro-up.png
 
Ok, indeed, tested and same as you
It seems to be the same "problem" when integrating certain apps (app update), resolved since

nuhi must also look at this I think, he is informed, in case

EDIT : In the meantime, maybe test it by integrating it "manually", see if it works
 
Last edited:
I also have this problem with TPM Diagnostics end the Math Recognizer, the latter being removed during image processing.
 
Last edited:
Ok, indeed, tested and same as you
It seems to be the same "problem" when integrating certain apps (app update), resolved since

nuhi must also look at this I think, he is informed, in case

EDIT : In the meantime, maybe test it by integrating it "manually", see if it works
May I ask how it was resolved
 
For the moment, none
nuhi needs to check and fix the problem first
 
1. Download the 24H2 LP & FOD ISO using this script:
PowerShell GUI for Downloading Windows ADK, WinPE, LP & FOD ISO's - W10_11ADK_WinPE_LP_FOD.ps1

2. Load your 24H2 install image.

3. From Features on Demand, search for WMIC and enable the checkbox.
NTLite will ask you to copy the required FOD package files into "C:\Program Files\NTLite\Cache\Updates\11.24H2.x64.FOD".

Windows 11 x64-2024-10-17-23-43-56.png

4. Mount the FOD ISO in Explorer, copy the following CAB files from "LanguagesAndOptionalFeatures" to NTLite's 11.24H2.x64.FOD folder:
Code:
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~amd64~en-US~.cab
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~amd64~~.cab
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~wow64~en-US~.cab
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~wow64~~.cab

Replace en-US with your preferred language version.

Windows 11 x64-2024-10-17-23-44-56.png

5. Create a new subfolder inside the 11.24H2.x64.FOD folder:
Code:
mkdir C:\Program Files\NTLite\Cache\Updates\11.24H2.x64.FOD\metadata

6. Copy the the following CAB files from the ISO's "LanguagesAndOptionalFeatures\metadata" folder into NTLite's FOD\metadata folder:
Code:
DesktopTargetCompDBForISO_FOD_en-us.xml.cab
DesktopTargetCompDB_FOD_Neutral.xml.cab

Replace en-US with your preferred language version.

Windows 11 x64-2024-10-17-23-45-22.png

7. Unmount the FOD ISO.

8. Apply your changes to the image.

Windows 11 x64-2024-10-18-00-02-42.png


NTLite currently has no process for adding FOD metadata (which is now required to enable 24H2's WMIC and VBScript features), but you can manually create a new subfolder under the FOD cache folder.

DISM expects to find both the FOD CAB's, and the DesktopTargetCompDB reference packages under the source path's metadata subfolder.
 
Thanks.
Seems like with FOD cache from the ISO, the error in the DISM log is:
Failed to find version: 10.0.26100.1742, of package: Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~amd64~~10.0.26100.1 [HRESULT = 0x80070490 - ERROR_NOT_FOUND]

Btw NTLite supports LanguagesAndOptionalFeatures subfolder in the FOD cache, you can simplify the guide by keeping that and metadata under it as is.

The 24H2 FOD I have seems to be for the Server, will get the Client one and retest this if it needs adjustments.
 
Tested on patched 26100.2033
Took content of 26100.1.240331-1435.ge_release_amd64fre_CLIENT_LOF_PACKAGES_OEM.iso
Added the new link to the FOD repository.

Extracted as is to \Updates\11.24H2.x64.FOD
Enabling WMIC complains about missing 10.0.26100.1742 package.

So we need 26100.1742+ FOD ISO, or your
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~amd64~en-US~.cab
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~amd64~~.cab
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~wow64~en-US~.cab
Microsoft-Windows-WMIC-FoD-Package~31bf3856ad364e35~wow64~~.cab
are of different version than those in the official FOD?
Please download above the compare, I will continue later.

I tried moving files to the FOD cache root, did not make a difference, checked the filenames as well, should be fine.
 
I'm only using packages from the CLIENT ISO, both ISO versions are downloaded from the same base URL (except with a different ISO filename).

My testing started with using DISM, outside of NTLite, to understand what the missing dependency was. I haven't retested with the latest 24H2 build, which might have later SSU fixes. Maybe later today if I have time.
 
Back
Top