download Windows 11 ESDs directly from Microsoft
A tool to download Windows 11 electronic software distributions (ESD) directly from Microsoft.
Since Microsoft does not distribute Windows ARM ISO images, this tool plus a way to convert ESD to ISO allows you to obtain a Windows ARM ISO image—e.g. for use in a virtual machine, such as UTM or the free VMware Fusion Player.
All requirements are already included in macOS. Patches are welcome for portability.
download-windows-esd languages
Lists the available language codes.
download-windows-esd editions LANGUAGE
Given a language code, lists the available Windows editions.
download-windows-esd architectures LANGUAGE EDITION
Given a language code and edition name, lists the available architectures.
download-windows-esd download LANGUAGE EDITION ARCHITECTURE
Downloads the ESD listed for the given language, edition, and architecture. This image may have more than one edition.
download-windows-esd will use a Microsoft redirect link to download an XML catalog file listing all variations of Windows 11 ESDs.
This catalog file, and the cabinet (.cab) file that contains it, will be cached locally.
If the cabinet file is more than 24 hours old or missing, this tool will automatically attempt to retrieve a new catalog file, which is only downloaded if its modified date is newer than what has already been downloaded.
Once the download is complete, it is checked against the SHA1 checksum present in the catalog.
Though the tool is not specific to Bash, a Bash completion script is included.
This script, when sourced or installed with other Bash completions, will provide autocomplete suggestions for the commands that download-windows-esd supports, as well as providing valid values for language, edition, and architecture where appropriate.
(Note: Bash completions can also be used in zsh via bashcompinit; in fact, as a zsh user, I developed the completions this way.)
There are a few ways you can convert the ESD to an ISO image.
While this tool itself is already licensed to you, Windows itself may require licensing and activation.
You must address this; this tool does not.