cschneegans / unattend-generator

.NET Core library to create highly customized autounattend.xml files
https://schneegans.de/windows/unattend-generator/
MIT License
680 stars 62 forks source link

Include the latest cumulative update in install iso and debloat #37

Closed XerXes777 closed 3 months ago

XerXes777 commented 3 months ago

You wrote: Bloatware removal works best with the original Windows 10 and 11 .iso images downloaded from Microsoft. I did not perform any tests with custom images.

It is okay to include the latest cumulative update with "Add-WindowsPackage" in install.wim? And use your debloat settings.

cschneegans commented 3 months ago

If you only apply Windows Update packages to your install.wim, you will probably be fine. Other modifications (like removal of provisioned packages) are more risky.

cschneegans commented 3 months ago

An alternative might be to apply the .msu updates via Add-WindowsPackage -Online during the autounattend.xml process. Managing reboots might be tricky, though.

Edit: I tried this with the 2024-08 Cumulative Update for Windows 11 Version 24H2 for x64-based Systems and ran

Add-WindowsPackage -Online -PackagePath "windows11.0-kb5041571-x64_adcfbf9f2bf5f01a98b91dbd8ebbe65402f896c8.msu"

during the Setup process. The installation was seemingly successful, but Windows Update offered the very same update again later. Personally, I will just let Windows Update do its work.