How to include updates to all the index


ijalabs

Member
Local time
7:51 PM
Posts
13
OS
Windows 11
Hi Experts,

I need to include a KB to all the windows index, how to do it ? normally i will do it only for one index so i will have a wim mounted using the specific index and include the KB then unmount the WIM.

Sample command on how i mount, add windows update and commit
Mount the Index :DISM.exe /Mount-Image /ImageFile:C:\test\images\myimage.wim /Index:1 /MountDir:C:\test\offline
Dism /Image:"C:\test\offline" /Add-Package /PackagePath="windows10.0-kb4456655******.msu"
Dism /Unmount-Image /MountDir:C:\test\offline /Commit

But now i have got to do for multiple index, so how can we do that.
1694447819917.png

Thanks
Bala
 
Windows Build/Version
Windows 11 22H2

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
The same way I do it with win7 updater.

Save the updated image 1 and leave it mounted

upgrade it to the next edition (Windows 11 Home N).

dism /Image:"your_mount_folder" /Set-Edition:Windows 11 Home N

when it has completed the upgrade save and unmount the image

mount image 1 again and upgrade it to (Windows 11 Home Single language )

dism /Image:"your_mount_folder" /Set-Edition:Windows 11 Home Single language

when it has completed the upgrade save and unmount the image.

mount image 1 again and upgrade it to whatever is the next edition


etc.


You can do it manually. I cobbled together a batch file for the win7 updater which goes something like this:

setlocal DisableDelayedExpansion
start "Editions" /wait cmd.exe /v/c "@echo off& (for /l %%a in (2,1,%n%) do %DISM% /Mount-Wim /WimFile:%wimdirpath%\sources\$install.wim /Index:"%%a" /MountDir:"%mountN%"& %DISM% /Image:"%mountN%" /Set-Edition:!ned_%%a!&call "%TP%\bin\clean7.cmd" &%DISM% /Unmount-Wim /MountDir:"%mountN%" /Commit)"
echo.
>nul TIMEOUT /T 1
start "Properties" /wait cmd.exe /v/c "@echo off& (for /l %%a in (2,1,%n%) do %wimlib% info %wimdirpath%\sources\$install.wim %%a --image-property "NAME=!nred_%%a!" --image-property "DESCRIPTION=!nred_%%a!" --image-property "FLAGS=!ned_%%a!" --image-property "DISPLAYNAME=!dd_%%a!" --image-property DISPLAYDESCRIPTION="!dd_%%a!")"
echo.
 
Last edited:

My Computers

System One System Two

  • OS
    Win7
    Computer type
    PC/Desktop
    CPU
    i5-8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Monitor(s) Displays
    benq gw2480
    PSU
    bequiet pure power 11 400CM
    Cooling
    cryorig m9i
  • Operating System
    win7
    Computer type
    PC/Desktop
    CPU
    pentium g5400
    Motherboard
    gigabyte b365m ds3h
    Memory
    1x8gb 2400
    PSU
    xfx pro 450
If you wanted a more finished tool, try abbodi1406's W10UI script. It's designed to add multiple KB's, and can update all images at the same time. This script has been been used by a number of Windows veterans, so it's well-tested.

 

My Computer

System One

  • OS
    Windows 7
Back
Top Bottom