Skip to content

Downloads the latest Win 11 x64 ISO direct from MS - Then SysPreps each index, removing: Network requirements during install, TPM requirements, S-Mode, and RAM requirements.

Notifications You must be signed in to change notification settings

illsk1lls/Win-11-Download-Prep-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 

Repository files navigation

Win-11-Download-Prep-Tool

Downloads the latest Win 11 x64 ISO direct from MS - Then SysPreps each index, removing: Network requirements during install, TPM requirements, and RAM requirements. Disabling S-Mode may also require turning off secure boot.

Credit to:
P. Batard - https://github.com/pbatard/Fido
Wimlib-Imagex - https://wimlib.net
Aria2c - https://github.com/aria2/aria2
7zip - https://www.7-zip.org/
wikijim - https://github.com/wikijm/PowerShell-AdminScripts/blob/master/Miscellaneous/New-IsoFile.ps1
Helge Klein - https://helgeklein.com/setacl/
AveYo - https://github.com/AveYo/MediaCreationTool.bat/blob/main/bypass11/Skip_TPM_Check_on_Dynamic_Update.cmd

Additional Changes to Win 11 ISO:

Allows in place upgrade on live unsupported system (From mounted ISO)
Enable Legacy F8 Boot Menu
Enable RegBack Registry backups during reboots
Disable UAC
Classic Context Menus
Decrease Space Between Items (Compact View)
Show Hidden Files
Show File Extensions

Note: Running from UNC paths is currently not supported.

Instructions:
1.) Double click the tool to download a new ISO directly from Microsoft and prep the image.
The final ISO will appear in the same folder you ran the script from.

--Alternatively--
You can drop an existing Win11 ISO onto the script using the mouse drag-and-drop. Doing this will skip the download and prep the ISO you provide. The script will rebuild the ISO in its original location.

How does it work?

The script first checks to see if it is running as administrator, if so it continues, if not it requests admin rights (if you already have rights it will elevate itself.) It checks to see if you Dropped a file onto it, or if you just executed it without a dropped file. If you dropped an existing ISO on the script, the ISO download will be skipped, it will create a temp folder in ProgramData, and download 7zip, Wimlib, and SetACL only with powershell's Invoke-WebRequest command. If you did NOT drop an ISO onto the script it will use powershell to download the above + Aria2c and Fido from Git, it runs CLI on Fido to fetch a fresh link from MS. The script will preserve the MS download link for up to 24hours and re-use it to avoid spamming MS download servers with requests. The link can be re-used as many times as possible until it expires(24hrs) at which point the script will see it has expired and ask for a new one. It will then begin the ISO download directly from Microsoft. Download resume is enabled. If the script is closed during the download, you can re-open the script and the download will pick up where it left off (the script will resume for up to 72hrs only to avoid version mismatch, if a partial download remains after 72 hours it will be removed and a new ISO will be requested.). Once the download is complete the ISO is mounted with powershell, and extracted to its own temp folder in ProgramData, then unmounted. Wimlib-Imagex is then used to extract the registry hives from each index (Edition), make changes, then inject the updated registry hives back into the Windows image, until all indexes are updated. Once the Windows image has been updated the script downloads the "New-IsoFile.ps1" powershell function from Git and appends the function with the appropriate commands to re-author the ISO with the new image. 2 CMD scripts are placed at the root of the ISO, one to allow upgrades on unsupported machines via mounted ISO, and one to clear out stuck Windows updates. If the script completes it cleans up after itself, leaving only the download link to be used if it is run again within 24hrs. And of course the ISO! ;) If it does not complete, the partial downloaded files and links will remain in ProgramData and be referenced the next time the script is run.

Windows 7 not supported due to powershell limitations, a requirement for MS link generation. Win 8+ with latest .NET updates supported.

About

Downloads the latest Win 11 x64 ISO direct from MS - Then SysPreps each index, removing: Network requirements during install, TPM requirements, S-Mode, and RAM requirements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published