Skip to main content

Update Windows 11 [Enablement Package] [Autofix]

Summary​

Upgrades Windows 11 devices to their next version when the Windows 11 Enablement Package Eligible Machine internal monitor detects them, then records the result.

Current versionUpgrade script it runsNew version
24H2Update Windows 11 24H2 To 25H2 [Enablement Package]25H2
25H2Update Windows 11 25H2 To 26H2 [Enablement Package]26H2

The monitor passes each device's settings to this script, such as the restart delay and whether to create failure tickets. You control these settings with the system properties and EDFs described below.

This script is part of the Windows 11 Enablement Package Upgrade solution.

Dependencies​

Sample Run​

First run: Run the script once against any online Windows 11 device with Set_Environment set to 1. This creates the system properties and EDFs the solution uses, with their default values. The device is not upgraded.

Image1

note

This script runs only from the Windows 11 Enablement Package Eligible Machine monitor, through the △ Custom - Execute Script - Update Windows 11 [Enablement Package] [Autofix] alert template. It is not designed for manual runs, except the first run with Set_Environment. A manual run exits without making changes.

User Parameters​

NameRequiredExampleDescription
Set_EnvironmentTrue (first run only)1Set to 1 to create the system properties and EDFs used by the solution. The script exits after creating them and makes no changes to the device.

How Settings Are Applied​

Each setting has a system property that acts as the default for all clients. You can override it with EDFs at the client, location, and computer level.

  • Text settings (EP_RebootDelaySeconds, EP_Installation_Window) – The most specific value wins, in this order: computer, location, client, system property. Blank or invalid values are skipped.
  • Check-box settings – A setting is on when it is checked at any level, or when its system property is 1. Unchecking a box at a lower level does not turn the setting off.
  • Disable EDFs – EP_Disable_25H2_Install and EP_Disable_26H2_Install block their upgrade when checked at any level. They override every setting that turns the upgrade on.
  • Machines per night – EP_Machines_Per_Night exists only as a system property and a client EDF. The client EDF wins.

Changes apply from the monitor's next run. EDF changes can take up to 20 minutes to reach the monitor.

Properties​

System properties are text fields. For on/off settings, enter 1 for on and 0 for off.

NameDefaultDescription
EP_Install_25H20Set to 1 to turn on the 25H2 upgrade for eligible 24H2 devices in all clients.
EP_Install_26H20Set to 1 to turn on the 26H2 upgrade for eligible 25H2 devices in all clients.
EP_NoReboot0Set to 1 to install the upgrade without restarting the device. The upgrade finishes on the device's next restart.
EP_RebootDelaySeconds120Seconds to wait before restarting, from 60 to 86400. Other values make the upgrade fail. Ignored when EP_NoReboot is on.
EP_IgnoreSafeguardHold0Set to 1 to install the upgrade even when Microsoft has blocked it on the device with a safeguard hold (a known compatibility issue). Use only on tested devices.
EP_Installation_Window2100-0500Hours when upgrades can start, in 24-hour HHMM-HHMM format. 2100-0500 means 9:00 PM to 5:00 AM. Times use the Automate server's time zone.
EP_Failure_Tickets0Set to 1 to create a ticket when an upgrade fails. See Ticketing.
EP_Machines_Per_Night20Maximum number of devices per client to upgrade in any 24 hours.
EP_Reboot_Prompts0Set to 1 to prompt users to restart when EP_NoReboot is on. Requires the User Prompt for Reboot solution.

Image2

Client-Level EDFs​

NameTypeLevelSectionEditableRequiredDescription
EP_Install_25H2Check-BoxClientEnablement PackageYesFalseTurns on the 25H2 upgrade for eligible 24H2 devices in this client.
EP_Install_26H2Check-BoxClientEnablement PackageYesFalseTurns on the 26H2 upgrade for eligible 25H2 devices in this client.
EP_Disable_25H2_InstallCheck-BoxClientEnablement PackageYesFalseBlocks the 25H2 upgrade for all devices in this client, even if it is turned on at another level.
EP_Disable_26H2_InstallCheck-BoxClientEnablement PackageYesFalseBlocks the 26H2 upgrade for all devices in this client, even if it is turned on at another level.
EP_NoRebootCheck-BoxClientEnablement PackageYesFalseInstalls the upgrade without restarting devices in this client.
EP_RebootDelaySecondsTextClientEnablement PackageYesFalseRestart delay in seconds for devices in this client, from 60 to 86400. Leave blank to use the system property.
EP_IgnoreSafeguardHoldCheck-BoxClientEnablement PackageYesFalseInstalls the upgrade on devices in this client even when a safeguard hold applies. Use only on tested devices.
EP_Installation_WindowTextClientEnablement PackageYesFalseInstallation window for devices in this client, in HHMM-HHMM format. Leave blank to use the system property.
EP_Failure_TicketsCheck-BoxClientEnablement PackageYesFalseCreates a ticket when an upgrade fails on a device in this client.
EP_Machines_Per_NightTextClientEnablement PackageYesFalseMaximum number of devices in this client to upgrade in any 24 hours. Leave blank to use the system property.
EP_Reboot_PromptsCheck-BoxClientEnablement PackageYesFalsePrompts users in this client to restart when EP_NoReboot is on.

Image3

Location-Level EDFs​

NameTypeLevelSectionEditableRequiredDescription
EP_Install_25H2Check-BoxLocationEnablement PackageYesFalseTurns on the 25H2 upgrade for eligible 24H2 devices in this location.
EP_Install_26H2Check-BoxLocationEnablement PackageYesFalseTurns on the 26H2 upgrade for eligible 25H2 devices in this location.
EP_Disable_25H2_InstallCheck-BoxLocationEnablement PackageYesFalseBlocks the 25H2 upgrade for all devices in this location, even if it is turned on at another level.
EP_Disable_26H2_InstallCheck-BoxLocationEnablement PackageYesFalseBlocks the 26H2 upgrade for all devices in this location, even if it is turned on at another level.
EP_NoRebootCheck-BoxLocationEnablement PackageYesFalseInstalls the upgrade without restarting devices in this location.
EP_RebootDelaySecondsTextLocationEnablement PackageYesFalseRestart delay in seconds for devices in this location, from 60 to 86400. Leave blank to use the client or system value.
EP_IgnoreSafeguardHoldCheck-BoxLocationEnablement PackageYesFalseInstalls the upgrade on devices in this location even when a safeguard hold applies. Use only on tested devices.
EP_Installation_WindowTextLocationEnablement PackageYesFalseInstallation window for devices in this location, in HHMM-HHMM format. Leave blank to use the client or system value.
EP_Failure_TicketsCheck-BoxLocationEnablement PackageYesFalseCreates a ticket when an upgrade fails on a device in this location.
EP_Reboot_PromptsCheck-BoxLocationEnablement PackageYesFalsePrompts users in this location to restart when EP_NoReboot is on.

Image4

Computer-Level EDFs​

NameTypeLevelSectionEditableRequiredDescription
EP_Install_25H2Check-BoxComputerEnablement PackageYesFalseTurns on the 25H2 upgrade for this device if it runs 24H2.
EP_Install_26H2Check-BoxComputerEnablement PackageYesFalseTurns on the 26H2 upgrade for this device if it runs 25H2.
EP_Disable_25H2_InstallCheck-BoxComputerEnablement PackageYesFalseBlocks the 25H2 upgrade for this device, even if it is turned on at another level.
EP_Disable_26H2_InstallCheck-BoxComputerEnablement PackageYesFalseBlocks the 26H2 upgrade for this device, even if it is turned on at another level.
EP_NoRebootCheck-BoxComputerEnablement PackageYesFalseInstalls the upgrade without restarting this device.
EP_RebootDelaySecondsTextComputerEnablement PackageYesFalseRestart delay in seconds for this device, from 60 to 86400. Leave blank to use the location, client, or system value.
EP_IgnoreSafeguardHoldCheck-BoxComputerEnablement PackageYesFalseInstalls the upgrade on this device even when a safeguard hold applies. Use only on tested devices.
EP_Installation_WindowTextComputerEnablement PackageYesFalseInstallation window for this device, in HHMM-HHMM format. Leave blank to use the location, client, or system value.
EP_Failure_TicketsCheck-BoxComputerEnablement PackageYesFalseCreates a ticket when an upgrade fails on this device.
EP_Reboot_PromptsCheck-BoxComputerEnablement PackageYesFalsePrompts the user of this device to restart when EP_NoReboot is on.
EP_Autofix_RunTimeTextComputerEnablement PackageNoFalseDate and time the script last ran on this device, in yyyy-MM-dd HH:mm:ss format. Set by the script.
EP_Autofix_ResultTextComputerEnablement PackageNoFalseResult of the last run: Success, Reboot Pending, or Failed. Set by the script.
EP_Autofix_SourceVersionTextComputerEnablement PackageNoFalseWindows 11 version this device had when the script last ran: 24H2 or 25H2. Set by the script.

Image5

Results​

After the upgrade script finishes, this script checks the device and saves one of these results in EP_Autofix_Result:

ResultMeaningWhat happens next
SuccessThe device already runs the target version.Nothing else is needed.
Reboot PendingThe upgrade is installed and finishes on the next restart.The device restarts after the delay, unless EP_NoReboot is on. When EP_NoReboot and EP_Reboot_Prompts are both on, the script turns on the Pending Reboot EDF, and the User Prompt for Reboot solution prompts the user to restart.
FailedThe upgrade did not install.The script logs the output and creates a ticket if EP_Failure_Tickets is on.

The monitor skips a device for 7 days after each run, whatever the result. A device that has moved from 24H2 to 25H2 since its last run is the exception: it can be picked up for the 26H2 upgrade right away.

EP_Autofix_Result keeps its value until the script runs again. Restarting the device does not change it. The Windows 11 Upgrade Audit [Enablement Package] dataview shows Success once the device reports the new version.

Ticketing​

When an upgrade fails and EP_Failure_Tickets is on for the device, the script creates a ticket. If the device still has an open ticket with the same subject from an earlier failure, the script adds the new details to that ticket as a comment instead of creating a duplicate.

To control the board and priority of these tickets, set the Ticket Category on the monitor. See the solution FAQ.

Subject:

Windows 11 <Target Version> Enablement Package Installation Failed on <Computer Name>

Body:

The Windows 11 <Target Version> enablement package failed to install on <Computer Name> at <Client Name> - <Location Name>.

Current version: Windows 11 <Current Version>
Target version: Windows 11 <Target Version>

The Enablement Package solution won't attempt this upgrade on the device again for 7 days.

Common causes are a Microsoft safeguard hold on the device, a missing prerequisite cumulative update, a pending restart from earlier updates, or low disk space. Review the output below for the exact error.

After fixing the issue, run "Update Windows 11 <Current Version> To <Target Version> [Enablement Package]" on the device to retry. Otherwise, the Windows 11 Enablement Package Eligible Machine monitor will detect it again after 7 days.

PowerShell Script Output:

<Output of the upgrade script>

Script Log Content:

<Content of the upgrade script's log file>

The Script Log Content section is included only when the upgrade script's log file exists on the device.

Output​

  • Script log
  • Computer-level EDFs: EP_Autofix_RunTime, EP_Autofix_Result, and EP_Autofix_SourceVersion
  • Pending Reboot EDF, when reboot prompts apply
  • Ticket, when EP_Failure_Tickets is on and the upgrade fails

Changelog​

2026-11-09​

  • Initial version of the document.