Skip to main content

Windows 11 Installer

Summary

Designed to upgrade Windows systems to the latest version. It can be used to:

  • Upgrade Windows 10 to Windows 11
  • Install Windows 11 feature updates (e.g., 21H2 → 22H2 → 23H2 → 24H2)

Supports multiple source types including HTTP/HTTPS URLs, local files, and network shares (UNC paths).

Notes:
• If the script is run without the NoReboot flag, it will automatically schedule itself to run again 30 minutes after the upgrade completes to perform validation.
• If no parameters are supplied, the machine will be upgraded to 24H2 by default.

Sample Run

First Run

Run the script with the Set_Environment parameter set to 1 to generate the required EDFs. For further details, refer to the EDFs section in the solution's document.

Image

Example 1: Install Windows 11 24H2

Image

Example 3: Install Windows 11 from a custom URL

Image

Dependencies

User Parameters

NameExampleRequiredDescription
Urihttps://my.repo.site/repo/Windows11.zipFalseA custom URI to either a local file or HTTP file that contains the target Windows 11 payload. If left blank, the script will automatically attempt to install Windows 11 24H2.
Multipart1FalseSet to 1 if the custom URI is a multipart file in the format https://my.repo.site/repo/Windows11.zip.001.
NoReboot1FalseSet to 1 to suppress rebooting the machine after the upgrade.
IgnoreCompat1FalseSet to 1 to ignore Windows 11 hardware/software requirements.
Set_Environment1Yes (first run only)Set to 1 on the initial execution to generate the EDFs required by the solution. For further details, refer to the EDFs section in the solution's document.

Output

  • Script log

Changelog

2026-03-26

  • The script now exits when the operating system is Windows 11 24H2 or later.

2026-03-09

  • Introduced new EDFs to enhance the solution's reporting and alerting capabilities.
  • Added a Set_Environment parameter to provision the EDFs required by the solution.
  • Removed the Version parameter due to reliability issues with the 25H2 installation method.
  • The script now supports 24H2 installations exclusively; if a custom Uri is provided, the script will attempt to install from that source.

2025-12-08

  • Introduced a new Version parameter.
  • Added support for Windows 11 versions 24H2 and 25H2.

2025-11-03

  • Added support for Windows 11.
  • Added support for UNC paths.
  • Added support for Azure Blob Storage URLs with SAS tokens (direct download URLs required).

2025-10-08

  • Added support for local paths in the Uri parameter.
  • Implemented a cleanup process to remove existing installers and extracted files prior to installation.

2025-01-15

2024-11-03

  • Updated document to remove beta from the name

2024-04-21

  • Initial version of the document