Tips for Automating Silent Windows 11 Upgrades Using ISO
Asked by
Tru3GamerX99
Hey folks! I'm reaching out for some help with automating the upgrade from Windows 11 23H2 to 24H2 using an ISO. In our environment, we're using Action1 for patching, which I find awesome. However, we've run into issues upgrading machines to 24H2, and it seems like other admins are facing similar challenges with various patching tools.
I've automated the download and mounting of the Windows 11 ISO, but I'm struggling with running the upgrade silently. The manual process works fine for around 30% of our fleet that won't take the update automatically, but it's just too tedious.
Has anyone figured out how to run the setup.exe with the right switches that avoid downloading updates and just perform the upgrade with a reboot? I want to schedule this to run overnight so machines are ready by morning. Any tips or insights would be greatly appreciated!
Answers
You should definitely try using setupprep.exe from the sources directory instead of the regular setup. Itโs way more reliable for automating the upgrade, whether itโs manual or automated.
Reply to this answer
Here's a command I use for the upgrade:
`Setup.exe /auto upgrade /quiet /eula accept /dynamicupdate disable /uninstall disable /tempdrive F`
I only apply this on VMs since they have a consistent state. The `dynamicupdate` option prevents it from contacting Microsoft for updates, speeding things up. Also, the `uninstall disable` command prevents creating a large windows.old folder since you won't be able to roll back. I even use a temp drive to avoid needing a ton of free space. You can find more switches in the official documentation.
Reply to this answer
Add your answer
Answers are reviewed before publication.
KittyCoder: Awesome! Iโm trying this out on a few devices, and it looks promising so far. Thanks a ton!