Capturing an Image (WIM) W7, W8.1, W10 1809

DISM command looks correct. Two questions: why are you adding updates to Post-Setup (unless those are non-integrable), and how are you adding them (as dropping in a CAB file, or typing DISM commands)?
 
Drag/drop onto the page. Ive got 140 updates in all, 2015-2019 .msu's. 2020-2022 are cab files because their installation wont get blocked by WU on a blocked cpu. Add everyting to a single setupcomplete then edit them out in batches of 10, that has been the most reliable method so far with no failed installations. Checked the ms dism page(and others) and there is no mention of switches, just the command i posted. Ive found sysprep to be very cranky :mad:.
 
Last edited:
My understanding is zeffy's bypass patches WU from checking CPU types. DISM doesn't care about it, nor should it. You can build images for a target machine unlike your own. Why can't you load the same updates into NTLite, and have it sort them out?

It's the same deal as W11 TPM. Setup cares, but DISM doesn't give a damn.

Obviously if you remove or reinstall something, unpatched WU on W8 would mind. But since W8 is EOL'ed, you can build an integrated image and never worry about future changes.
 
8.1 is end of extended support jan next year, embedded versions june or july. z---y has to be run after every update cos you dont know which updates contain the blocker and it hasnt been updated. So its install on an unblocked cpu, which i have but dont want to assemble or install on this blocked coffee lake and circumvent that block by using dism and not wu.
 
Don't be a dork and list 140 updates in Post-Setup!!

Drop them into $OEM$\$$\Setup\Updates, and write a batch script.
Code:
@echo off
for /r %%a in ("%WINDIR%\Setup\Updates"\*) do dism /Online /Add-Package /PackagePath:%%a /ignorecheck /norestart

Then move your script to the end of Post-Setup, and edit SetupComplete to add a reboot after folder cleanup:
Code:
...
call "%WINDIR%\Setup\Files\W8updates.bat"

rd /q /s "%WINDIR%\Setup\Updates"
rd /q /s "%WINDIR%\Setup\Files"
del /q /f "%0"

shutdown.exe /r /t 5

Rebooting at the end of Post-Setup is OK, since we cleaned up after ourselves before shutdown. SetupComplete would have exited into first logon, which waits until after reboot.
 
Im done now apart from testing the nets rollups. I build 1 large setupcomplete then edit it down into seperate bats each containing 10 updates and restart. All i need to do now is 1 last test for the nets updates, checking for any "not applicables" etc, once thats done final for the capture. Ive spent a few days on this so far and its been time well spent, ive actually got somewhere with it :D.
 
I thought there should be but i didnt see anything online till i ran them :rolleyes:. Im running the final install now.
 
Done :D
I want to add notes to a wimscript.ini file, is this example correct?
Code:
[notes here]
\Recovery
Can the notes be added to the same line as the exclusion, either before or after?
[ExclusionList]
Oh yeah, Derrrrrrrrrr :rolleyes:.
 
Last edited:
There's no point in keeping definitions, because Defender will replace them when it reconnects.

The formal way of cleaning up (before capture):
MpCmdRun.exe -RemoveDefinitions -All
 
Back
Top