Slipstream Win10 Updates into OSD ISO

Hi all!

Just curious if anyone knows of a way to slipstream Windows updates into your ISO in your OSD image library. I’m using Win10 22H2 Enterprise for example. I have the MSU update package already downloaded but am just unsure how to integrate that into my image.

I know I could just login to the PC, run Windows updates, and then re-pull an ISO from that machine, but I’d rather it be a flat ISO with no users/history/etc. so my baselines can do their magic later on a clean slate.

Thanks!

Yes, the basic process is to use DISM to mount your WIM image into a folder, apply the updates, and unmount the image.

Then use the OSD Image Library to upload the updated WIM file as a new OS image.

Details at

https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/servicing-the-image-with-windows-updates-sxs?view=windows-11

For example

DISM /Mount-image /imagefile:c:\images\install.wim /Index:1 /MountDir:c:\mount\windows

Dism /Image:"C:\mount\windows" /Add-Package /PackagePath="windows10.0-kb4456655-x64_fca3f0c885da48efc6f9699b0c1eaf424e779434.msu"  /LogPath=C:\mount\dism.log

Dism /Unmount-Image /MountDir:C:\mount\windows /Commit

Thanks, Jason :slight_smile:

I’ll give this a shot tomorrow!

Hi,
if you want to apply an .msu package to a captured image (.wim), you can import the .wim file that has been patched with the described dism procedure into BigFix OSD image library as "windows format image (.wim)"
If instead you you want to apply it on an setup image (ISO), you have to:

  1. uncompress the ISO image to a folder (installation media folder)
  2. apply the described dism procedure to the install.wim file included (its full path is sources\install.wim)
  3. upload the patched image as “Installation media folder (uncompressed .iso)” with the install.wim file in the original location
    Thanks.

Alright - I gave the DISM steps a shot and got an error when trying to analyze the image in BigFix. The rbagent.trc file does not seem to exist on my OSD server, nor on my local PC that I am running the console on/running DISM on:

When browsing for the installation media folder, I chose the folder that I extracted the ISO into originally. These are the files within:

image

…so to me, this looks correct. I guess I am not sure what BigFix is not liking about the uncompressed ISO folder. The folder I selected in BigFix was the parent folder of the items you see above.

I also tried uploading just the install.WIM, as Windows Format Image. This did successfully upload, but for some reason, the image tried to create like 10 partitions on the drive, 15gb each. It also took at least an hour for analysis, and eventually failed to image due to some sort of partition mismatch.

I feel like the former method is easier/more correct/streamlined, but I will take any suggestions.

Thanks!!

Hello.
More information on the error is in the file reported in the error:
%userprofile%\OSDeployment\rbagent.trc
Please note that, if you tried to import the install.wim as a windows format image, it has been overwritten so you have to reproduce the error again to have the right rbagen.trc content.
Thanks.

Hi Sergio,

Which device should this rbagent.trc file live on? The OSD server, or the device with the console that I am uploading the image from?

Thanks!

Hi. It’s on the console computer.

@sergio_tarchi I checked rbagent.trc and I am seeing errors. Here is the full rbagent.trc file. Do you have any insight into the following?

[2023/07/27 10:32:11:168] Bare Metal Server for BigFix OS deployment Web extension 64 bits v.7.1.1.20 (311.18)
[2023/07/27 10:32:11:169] (C) Copyright HCL Technologies Limited 2000, 2023.
[2023/07/27 10:32:11:169] All Rights Reserved. HCL, the HCL logo, and BigFix are trademarks of HCL Technologies Limited in the United States, other countries or both.
[2023/07/27 10:32:11:282] Bootable: \\.\PHYSICALDRIVE0
[2023/07/27 10:32:11:320] Running in offline mode
[2023/07/27 10:32:11:340]  A <NOT> LoadPakUtils: loading from rbagent.pak
[2023/07/27 10:32:11:343]  A <NOT> LoadPakUtils: successfully loaded
[2023/07/27 10:32:11:518]  A <NOT> Loading server extensions if available
[2023/07/27 10:32:11:519]  A <NOT> Working in offline, extensions are disabled
[2023/07/27 10:32:11:526]  A <NOT> No ServerID has been defined
[2023/07/27 10:32:11:588]  A <NOT> Selected temporary folder: 'local://temp/tpm_754C2A788591EC86_1'
[2023/07/27 10:32:11:589]  A <NOT> Mounting install.wim index 1
[2023/07/27 10:32:12:317] WIM library loaded
[2023/07/27 10:32:12:608] Error 00000522 while attempting to mount image
[2023/07/27 10:32:13:438] WIMUnMount("C:\Users\myusername\AppData\Local\Temp\1\tpm_754C2A788591EC86_1",0)
[2023/07/27 10:32:13:439] Error c142011c while attempting to unmount image
[2023/07/27 10:32:14:507]  A <ERR> Command error: Archive inconsistency detected, Error c142011c while attempting to unmount image 
[2023/07/27 10:32:14:509]  A <ERR> Error raised by WIMWait in pakutils.rbc, line 423 [@SY:7785]
[2023/07/27 10:32:14:511]  A <ERR> Archive inconsistency detected (Error c142011c while attempting to unmount image )
[2023/07/27 10:32:14:520]  A <WRN>  (called from unmount (pakutils.rbc:694))
[2023/07/27 10:32:14:521]  A <WRN>  (called from CheckVistaState (pakutils.rbc:728))
[2023/07/27 10:32:14:521]  A <WRN>  (called from WIMGetImageDescriptions (pakutils.rbc:510))
[2023/07/27 10:32:14:522]  A <WRN>  (called from generateWinImageInfo (load.rbc:14716))
[2023/07/27 10:32:14:523]  A <WRN>  (called from generateWinImageInfoForSetupImage (load.rbc:16326))
[2023/07/27 10:32:14:524]  A <WRN>  (called from RAD_temmksetup (load.rbc:16504))
[2023/07/27 10:32:14:524]  A <WRN>  (called from AgentDispatch (rbagent.rbc:4397))
[2023/07/27 10:32:14:525]  A <WRN>  (called from --toplevel-- (rbagent.rbc:4824))
[2023/07/27 10:32:14:526]  A <ERR> RbAgent command rad-temmksetup has failed [AGT:4404]

Hello.
It seems that it’s not able to mount the install.wim image included in the uncompressed iso folder.
Are you running your console “as Administrator”? If not, it could be an authorization issue.
In this case you can try to close the console and reopen it right clicking on the BigFix console icon and then “run as Administrator”.
If you are already running as Administrator, it could be that the patched wim is corrupted. You can verify this trying to mount it manually with dism command:
e.g. DISM.exe /Mount-Image /ImageFile:C:\importDir\sources\install.wim /Index:1 /MountDir:C:\test\offline
If you are able to manually mount the image but the import is still failing, I suggest to open a case to the support team for additional verifications.
Thanks.

@sergio_tarchi You nailed it - I was not running the console as admin. Once I did so, I was able to successfully upload the uncompressed ISO folder.

I’ll do some more testing just to validate everything, but I was able to image a client successfully using the slipstreamed ISO, so we might be all set :slight_smile:

1 Like