← Back to articles Intune

Autopilot ESP Blocking Apps & Windows Update Rings: Reverse-Engineering the Contoso Health Intune Fleet Health Check

Autopilot ESP Blocking Apps & Windows Update Rings: Reverse-Engineering the Contoso Health Intune Fleet Health Check
🎬

Video Brief & Interactive Architecture Deck

Watch the walkthrough, explore the 16:9 interactive slide deck, or download PDF notes

▶️ Fullscreen Video ▶️ Watch on YouTube 🔔 Subscribe to MSEndpoint TV

Architectural Premise & The Real-World Challenge

Two findings surfaced during the Contoso Health Intune Health Check that look unrelated on the surface — Autopilot enrollment taking 34 minutes end-to-end, and a fleet sitting at only 66% currency on the latest cumulative update — but they are the same architectural failure pattern wearing different clothes. Both are cases of an admin trusting a scheduled, synchronous, all-or-nothing execution model to do the job of an asynchronous, condition-based one.

The Enrollment Status Page (ESP) is not a progress bar. It is a blocking gate built on top of the Intune Management Extension's (IME) sequential app targeting engine, and every app you mark as "blocking" is a serialized dependency in that gate's critical path. Contoso's build had Rapid7, Company Portal, and a community-sourced Autopilot Branding script all configured as required-before-desktop apps, stacked behind Crowdstrike. The architectural trade-off Microsoft doesn't spell out clearly in the docs: ESP blocking apps do not run in parallel by default, they inherit whatever install sequencing IME determines from Win32 app dependency chains and detection rule evaluation, and a single slow MSI, a licensing handshake to a third-party console, or a script waiting on a REST callback will hold the entire OOBE hostage — even if every other app on the list installed cleanly in 90 seconds.

Windows Update rings have an equally deceptive premise. "Auto install and restart at a scheduled time" reads like a guarantee. It is a conditional guarantee: the device must be powered on, unlocked or logged in appropriately, and network-reachable at the exact configured moment, or the entire cycle silently defers to the following week. There's no compensating control in that policy branch for devices that sleep, hibernate, or get shut off at 5 PM — which describes the vast majority of a mobile knowledge-worker fleet. Combine a rigid weekly cadence with zero power management policy and you get exactly what the health check found: policy applied correctly, compliance state green, and the device still 34 days and ~25 updates behind.

Architectural Trade-off: Both symptoms trace back to the same root cause — treating a conditional, event-driven Windows subsystem (IME app targeting, Windows Update orchestration) as if it were a deterministic, time-boxed batch job. Fix the model, not the symptom.

Under the Hood: Execution Engine & Mechanics

ESP Blocking App Execution Path

When a User-Driven Microsoft Entra ID Autopilot device hits OOBE, the ESP tracking is driven by the MDM_EnrollmentStatusTracking CSP surfaced through root\cimv2\mdm\dmmap on the client. The ESP profile (Settings Catalog-backed under the hood, delivered via OMA-DM SyncML during the device's periodic check-in) tells the client which app GUIDs and which policy CSPs must report a "Success" state before the desktop unlocks. Win32 apps, unlike Configuration Profiles which land through the native OMA-DM channel, are handled entirely by the Intune Management Extension — a separate Win32 service (IntuneManagementExtension.exe) that polls Intune via its own sync loop, downloads content from Azure Blob storage, executes install/detection scripts under the SYSTEM context, and writes status back through the AppWorkload provider, which the ESP tracking CSP then reads to decide gate progression.

Here's the part that catches architects off guard: IME's Win32 app targeting isn't fully parallelized. Detection rule evaluation, dependency resolution, and the sequential nature of how IME processes its work queue mean that three blocking apps rarely install concurrently in practice — especially when one of them (an EDR agent, a branding script invoking Restart-Computer staging, or a third-party AV requiring cloud policy sync before it reports "installed") has an inherent activation delay baked into its own install logic. The ESP simply blocks on whichever app finishes last.

As shown in Figure 1 below, the baseline test — Rapid7, Company Portal, and the AutopilotBranding script all configured as blocking apps alongside Crowdstrike — produced a 34-minute deployment window from first contact to desktop.

Intune Autopilot device properties for J21L1Z2 showing successful enrollment with 34-minute deployment time.
Figure 1 : Microsoft Intune admin center — Devices > Windows > Windows Autopilot devices > J21L1Z2 - Properties blade, displaying a successfully enrolled User-driven Microsoft Entra ID Autopilot device. The device completed its Enrollment Status Page deployment on 09/01/2026 with an Azure AD Join Autopilot profile assigned, and the total end-to-end deployment time of 34 minutes is highlighted, confirming a successful out-of-box experience provisioning cycle.

As illustrated in Figure 2 below, stripping the ESP down to a single blocking app (Crowdstrike only, since it is the sole security-critical agent that must be present before the user reaches the desktop) collapsed the same enrollment to 4 minutes 54 seconds — a 29-minute reduction with zero change to the underlying hardware, network path, or tenant configuration. This is the ESP tracking CSP no longer waiting on IME's serialized processing of low-priority, non-security apps.

Intune Autopilot device properties showing successful User-driven Entra ID enrollment completed in 4 mins 54 secs.
Figure 2 : Microsoft Intune admin center — Devices > Windows > Windows enrollment > Windows Autopilot devices > J21L1Z2 – Properties blade, displaying a successfully enrolled Autopilot device using the User-driven Microsoft Entra ID enrollment method with the 'Azure AD Join' Autopilot profile and 'AutoPilot V1 - Test' ESP profile assigned. The Enrollment Status Page deployment state reports Success, with the full end-to-end deployment completing in 4 minutes 54 seconds from first contact to desktop readiness.

Windows Update Ring Execution Path

Update rings publish through the Policy CSP (Update/ area) via standard OMA-DM SyncML, landing on the client as registry state under HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Update. The Update Orchestrator service (UsoSvc) reads these values to schedule its maintenance windows, but it does not own power state — that's arbitrated separately by the Power Policy CSP and the underlying Task Scheduler "Automatic Maintenance" idle task, which is gated by AutomaticMaintenanceWakeUp. Absent that flag and an aligned sleep/hibernate policy, UsoSvc will schedule the install job correctly every single week — the job simply never fires because the device is in S3 sleep or fully powered off at 3 AM Thursday.

As shown in Figure 3 below, Pilot Ring 1's configuration confirms the rigid architecture: Automatic update behavior set to "Auto install and restart at a scheduled time," weekly frequency, Thursday 3 AM install window, a 2-day deadline for both feature and quality updates, and a 0-day grace period with auto-reboot before deadline disabled.

Intune Update Ring 'Pilot Ring 1' showing auto install and restart scheduled for Thursdays at 3 AM.
Figure 3 : Microsoft Intune admin center – Devices > Windows > Update rings for Windows 10 and later > Pilot Ring 1 summary blade. The Automatic update behavior is configured to 'Auto install and restart at a scheduled time,' with installations scheduled every Thursday at 3 AM, ensuring predictable maintenance windows for pilot devices. Deadline enforcement is active with a 2-day deadline for both feature and quality updates, a 0-day grace period, and auto reboot before deadline disabled.

Microsoft's own documentation is explicit about the failure mode here, even if it's easy to miss in the console. As shown in Figure 4 below, the "Auto install and restart at a scheduled time" policy's own Note callout states plainly that the device may not complete installation at the specified time due to power policies or user absence, and will simply retry at the next scheduled window or defer to the configured deadline — there is no built-in wake escalation unless AutomaticMaintenanceWakeUp and a compatible power policy are layered on top.

Docs excerpt showing Scheduled install time setting and a note on missed installation retry behavior.
Figure 4 : Microsoft documentation excerpt detailing the 'Auto install and restart at a scheduled time' Windows Update policy option within Intune or Group Policy configuration. The highlighted 'Scheduled install time' sub-setting allows administrators to define a specific time of day for update installation, complementing the Automatic behavior frequency and Scheduled install day options. The accompanying Note callout warns that installations may be skipped due to power policies or user absence, with retry deferred to the next scheduled window or a configured compliance deadline.

The downstream evidence of this gap is visible in the fleet-wide quality update distribution. As shown in Figure 5 below, only 65.99% of the 1,035 managed devices had progressed to the 2026-08 B monthly security update at the time of the report, with 9.08% still sitting on the July out-of-band security release and 6.18% on releases older than that — a direct, measurable consequence of the scheduled-time-only update behavior colliding with unmanaged device power states.

Intune Windows quality update distribution report showing 1035 devices across multiple 2026 monthly security updates
Figure 5 : Accessed via Dashboard > Reports > Windows updates in the Microsoft Intune admin center, the Windows Quality Update Distribution report displays device spread across quality update versions scoped to the Default tag group. The majority of the 1035 managed devices (65.99%, 683 devices) are on the 2026-08 B Monthly Security Update, with an out-of-band security update (2026-07 OOB) accounting for 9.08% (94 devices), and 6.18% (64 devices) remaining on older releases, indicating patching compliance gaps requiring remediation.

Enterprise Edge Cases & Scale Gotchas

At Contoso Health's scale (~1,035 managed endpoints) these mechanics compound in predictable but expensive ways:

  • ESP blocking app timeout ceiling: The ESP has a hard default timeout (60 minutes per Settings Catalog for the ESP profile, extendable). Every additional blocking app doesn't just add its own install time — it adds risk surface. A single Win32 app with a flaky detection rule (e.g., a registry key that intermittently fails to write before the detection scan runs) can push the entire population past the ESP timeout ceiling at scale, triggering a wave of "ESP failure, allow device use" fallbacks across a large deployment wave — which defeats the entire purpose of a blocking gate.
  • Serialized IME queue under fleet-wide rollout pressure: When hundreds of devices enroll concurrently during a hardware refresh, IME on each device independently polls and downloads Win32 app content from Azure Blob storage. Bandwidth-constrained sites (VPN-backed remote workers, satellite clinics) will see ESP times balloon further, since blocking apps queue behind content download throttling, not just install execution.
  • Hybrid Entra Join vs. Cloud Native nuance: On Hybrid Entra Join Autopilot profiles, the ESP additionally blocks on the domain join and Entra Connect sync round-trip before Win32 apps even begin processing — meaning the same blocking-app overhead observed here compounds on top of an already longer baseline. Cloud Native (Entra ID Join) devices, as tested here, skip that domain join dependency entirely, which is part of why the 4-minute-54-second result was achievable.
  • Update deadline vs. grace period math: With Grace Period set to 0 days and Deadline set to 2 days, a device that misses its scheduled window has only 2 calendar days before Windows forces the install/restart regardless of user activity — but that clock only starts once the *previous* update was detected as applicable, and a sleeping device may not even have checked in to start that clock. This is why "deadline enforcement" alone does not solve the currency gap; it only bounds the worst case for devices that are at least occasionally online.
  • Windows Autopatch as the long-term structural fix: Autopatch replaces the rigid scheduled-time model with deadline-and-grace-period-driven orchestration by default and actively remediates devices that fall behind, removing the dependency on precise wake timing entirely — this is the architectural escape hatch, not a patch on top of the existing ring model.
Setting / CSP NodeLocationBaseline (Finding)Recommended
Automatic update behaviorUpdate rings > Pilot/ProductionAuto install and restart at a scheduled timeAuto install and restart at maintenance time
AutomaticMaintenanceWakeUpSettings Catalog (Power CSP)✗ Not configured✓ Enabled for AC-powered devices
Sleep/hibernate timeout alignmentPower CSP / Settings Catalog✗ Not configured✓ Aligned to maintenance window
Grace periodUpdate rings0 daysRetain 0–1 days, rely on deadline
Deadline (feature/quality)Update rings2 daysRetain — enforces stragglers
ESP blocking appsEnrollment Status Page profileRapid7, Company Portal, AP Branding, Crowdstrike (4 apps)Crowdstrike only (security-critical)
Autopilot Branding scriptWin32 app (community, mtniehaus/AutopilotBranding)Legacy version, unverified Win11 supportUpdate to latest release or replace with native config

Production Implementation & Automation

The remediation splits into two independent Graph-driven changes: (1) trimming the ESP-required app list, and (2) re-provisioning the update ring policy body plus a companion Settings Catalog power policy for wake-on-maintenance. Both are shown below as idempotent, ShouldProcess-aware scripts suitable for a change-controlled production rollout.

Required Scopes: DeviceManagementConfiguration.ReadWrite.All, DeviceManagementServiceConfig.ReadWrite.All, DeviceManagementApps.ReadWrite.All

Step 1 — Audit and Trim ESP Required Apps

Step 1: Connect to Microsoft Graph with the scopes above and enumerate all Windows Autopilot Deployment Profiles and their linked Enrollment Status Page configurations.
Step 2: Pull the current selectedMobileAppIds array from the target ESP profile (deviceEnrollmentConfigurations of type #microsoft.graph.windows10EnrollmentCompletionPageConfiguration).
Step 3: Diff against the approved security-critical app allowlist (Crowdstrike / ArticWolf app GUIDs) and remove non-essential blocking apps, leaving them assigned as required (non-blocking) so they still deploy post-enrollment within the 30–60 minute window.
Step 4: Commit the PATCH via -WhatIf-gated ShouldProcess, validate against a pilot Autopilot group, then promote to production assignment.
<#
.SYNOPSIS
    Audits Intune Enrollment Status Page (ESP) profiles and trims non-security
    blocking apps down to an approved security baseline using -WhatIf support.
#>
[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'High')]
param(
    [Parameter(Mandatory)]
    [string]$EspProfileDisplayName,

    [Parameter(Mandatory)]
    [string[]]$ApprovedSecurityAppIds
)

Connect-MgGraph -Scopes @(
    'DeviceManagementConfiguration.ReadWrite.All',
    'DeviceManagementServiceConfig.ReadWrite.All',
    'DeviceManagementApps.ReadWrite.All'
) -NoWelcome

$espUri = 'https://graph.microsoft.com/beta/deviceManagement/deviceEnrollmentConfigurations'
$configs = (Invoke-MgGraphRequest -Method GET -Uri $espUri).value |
    Where-Object {
        $_.'@odata.type' -eq '#microsoft.graph.windows10EnrollmentCompletionPageConfiguration' -and
        $_.displayName -eq $EspProfileDisplayName
    }

foreach ($esp in $configs) {
    $currentIds = @($esp.selectedMobileAppIds)
    $trimmedIds = @($currentIds | Where-Object { $_ -in $ApprovedSecurityAppIds })
    $removedIds = @($currentIds | Where-Object { $_ -notin $ApprovedSecurityAppIds })

    Write-Host "[ESP] Profile: $($esp.displayName) ($($esp.id))" -ForegroundColor Cyan
    Write-Host "      Current blocking apps : $($currentIds.Count)"
    Write-Host "      Trimmed blocking apps : $($trimmedIds.Count)"
    Write-Host "      Moved to post-ESP req : $($removedIds.Count)" -ForegroundColor Yellow

    if ($removedIds.Count -eq 0) { continue }

    $patchBody = @{
        '@odata.type'       = '#microsoft.graph.windows10EnrollmentCompletionPageConfiguration'
        selectedMobileAppIds = $trimmedIds
    } | ConvertTo-Json -Depth 4

    $patchUri = "$espUri/$($esp.id)"
    if ($PSCmdlet.ShouldProcess($esp.displayName, 'Update ESP blocking selectedMobileAppIds')) {
        Invoke-MgGraphRequest -Method PATCH -Uri $patchUri -Body $patchBody -ContentType 'application/json'
        Write-Host "[OK] Updated ESP blocking app allowlist." -ForegroundColor Green
    }
}

Step 2 — Remediate Update Ring Behavior + Deploy Wake-on-Maintenance Power Policy

Step 1: Retrieve the existing windows10UpdateForBusinessConfiguration policy for Pilot Ring 1 and Production rings by display name.
Step 2: Patch automaticUpdateMode from autoInstallAtMaintenanceTime scheduling logic (replacing the rigid scheduledInstallDay/scheduledInstallTime combination), retaining the existing 2-day deadline and 0-day grace period enforcement values.
Step 3: Deploy a companion Settings Catalog profile targeting the Power CSP, enabling AutomaticMaintenanceWakeUp, and setting AC-powered sleep timeouts long enough to guarantee the nightly maintenance window fires.
Step 4: Assign both policies to the same Entra ID security group as the update ring to guarantee co-application, and validate via Intune's Windows Update report (Figure 5's report blade) over the following 14-day patch cycle.
<#
.SYNOPSIS
    Switches an Intune Windows Update Ring from scheduled install time to
    maintenance-time orchestration and deploys a Settings Catalog Power Wake profile.
#>
[CmdletBinding(SupportsShouldProcess = $true)]
param(
    [Parameter(Mandatory)]
    [string]$UpdateRingName,

    [Parameter(Mandatory)]
    [string]$TargetEntraGroupId
)

Connect-MgGraph -Scopes @(
    'DeviceManagementConfiguration.ReadWrite.All'
) -NoWelcome

# 1. Switch Update Ring behavior to autoInstallAtMaintenanceTime while retaining deadlines
$ringsUri = 'https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations'
$ring = (Invoke-MgGraphRequest -Method GET -Uri $ringsUri).value |
    Where-Object {
        $_.'@odata.type' -eq '#microsoft.graph.windowsUpdateForBusinessConfiguration' -and
        $_.displayName -eq $UpdateRingName
    } | Select-Object -First 1

if ($ring) {
    $ringPatch = @{
        '@odata.type'                 = '#microsoft.graph.windowsUpdateForBusinessConfiguration'
        automaticUpdateMode           = 'autoInstallAtMaintenanceTime'
        qualityUpdatesDeferralPeriodInDays = $ring.qualityUpdatesDeferralPeriodInDays
        featureUpdatesDeferralPeriodInDays = $ring.featureUpdatesDeferralPeriodInDays
        deadlineForQualityUpdatesInDays    = 2
        deadlineForFeatureUpdatesInDays    = 2
        deadlineGracePeriodInDays          = 0
        autoRestartNotificationDismissal   = 'notConfigured'
    } | ConvertTo-Json -Depth 5

    if ($PSCmdlet.ShouldProcess($ring.displayName, 'Set automaticUpdateMode=autoInstallAtMaintenanceTime')) {
        Invoke-MgGraphRequest -Method PATCH -Uri "$ringsUri/$($ring.id)" -Body $ringPatch -ContentType 'application/json'
        Write-Host "[OK] Updated ring '$($ring.displayName)'." -ForegroundColor Green
    }
}

# 2. Deploy Settings Catalog profile enabling AC Wake Timers & AutomaticMaintenanceWakeUp
$policyPayload = @{
    name         = 'Win11 - Power Wake-on-Maintenance (AC)'
    description  = 'Enables AutomaticMaintenanceWakeUp and AC wake timers for Windows Update rings.'
    platforms    = 'windows10'
    technologies = 'mdm'
    settings     = @(
        @{
            '@odata.type' = '#microsoft.graph.deviceManagementConfigurationSetting'
            settingInstance = @{
                '@odata.type'       = '#microsoft.graph.deviceManagementConfigurationChoiceSettingInstance'
                settingDefinitionId = 'device_vendor_msft_policy_config_power_enablewktimerspluggedin'
                choiceSettingValue  = @{
                    '@odata.type' = '#microsoft.graph.deviceManagementConfigurationChoiceSettingValue'
                    value         = 'device_vendor_msft_policy_config_power_enablewktimerspluggedin_1'
                }
            }
        }
    )
} | ConvertTo-Json -Depth 8

if ($PSCmdlet.ShouldProcess('Win11 - Power Wake-on-Maintenance (AC)', 'Create and assign Settings Catalog policy')) {
    $created = Invoke-MgGraphRequest -Method POST `
        -Uri 'https://graph.microsoft.com/beta/deviceManagement/configurationPolicies' `
        -Body $policyPayload -ContentType 'application/json'

    $assignBody = @{
        assignments = @(
            @{
                target = @{
                    '@odata.type' = '#microsoft.graph.groupAssignmentTarget'
                    groupId       = $TargetEntraGroupId
                }
            }
        )
    } | ConvertTo-Json -Depth 5

    Invoke-MgGraphRequest -Method POST `
        -Uri "https://graph.microsoft.com/beta/deviceManagement/configurationPolicies/$($created.id)/assign" `
        -Body $assignBody -ContentType 'application/json'
    Write-Host "[OK] Assigned Power Wake profile '$($created.id)' to group $TargetEntraGroupId." -ForegroundColor Green
}
Proactive IT Engineering Toolkit (Optional): If the organization adopts Windows Autopatch, the deadline/grace-period/wake-up orchestration described above is handled automatically by the Autopatch service's own release schedule and device health monitoring — the manual Settings Catalog power policy in Step 2 becomes optional hardening rather than a hard requirement, since Autopatch actively re-targets devices that fall out of compliance rather than waiting on a fixed weekly window.

Architectural Takeaways & Decision Matrix

The pattern to internalize: ESP blocking apps and Windows Update scheduled-time behavior both fail the same way at scale — they assume a deterministic device state (online, awake, idle) that a real mobile fleet does not reliably provide. The fix in both cases is the same architectural shift — move from rigid, time-boxed, all-or-nothing gates to condition-based, deadline-enforced, retry-capable mechanisms.

MechanismUse WhenAvoid When
ESP Blocking AppsApp is security/compliance critical and must exist before first login (EDR, disk encryption agent)App is nice-to-have branding/UX polish or has unpredictable install latency
Non-blocking Required Apps (post-ESP)App can tolerate arriving 30–60 minutes after desktop unlockApp is a hard compliance/CA prerequisite
Scheduled-time Update BehaviorFixed on-prem desktops with guaranteed uptime (kiosks, VDI)Mobile laptop fleets with variable power state
Maintenance-time Update Behavior + Wake CSPMixed mobile/desktop fleet needing patch currency without user disruptionDevices with no reliable AC power source (rare mobile-only use cases)
Windows AutopatchEnterprise wants automated ring management, remediation, and reporting without hand-tuned CSPsHighly customized update logic tied to line-of-business compatibility gating

Community-sourced customization scripts, like the legacy AutopilotBranding project referenced in the health check, deserve the same architectural scrutiny as blocking apps. If Windows 11's native Settings Catalog and Config profiles can already achieve the start menu layout, background, and debloat outcomes the script was written for, the script isn't providing capability anymore — it's providing technical debt with an unverified compatibility surface. Either update it to the current supported release or retire it in favor of native CSP-backed configuration.

Was this article helpful?

🎯
MSEndpoint Academy · MD-102

Assess Your Microsoft 365 & Intune Skills (MD-102)

100% Free • 10 Real Questions

Applying this guide in production? Test your technical readiness against real exam scenarios from Microsoft 365 Certified: Endpoint Administrator (MD-102).

💡 MD-102 Express Knowledge Check Question 1 of 10

You want an Intune compliance policy assigned to All Devices to apply ONLY to corporate Windows 11 laptops without waiting for dynamic group re-evaluation. Which Intune capability handles this instantaneously at check-in?

🔒 100% Free • 📊 Instant Explanations • 🖥️ Pearson VUE Mode
Take Free 10-Question MD-102 Diagnostic → MD-102 2026 Exam Guide & Sample Q&A Launch Pearson VUE Simulator

🎓 Ready to go deeper on MD-102?

Practice real MD-102 exam questions, study verified Microsoft Learn explanations, and test yourself in Pearson VUE simulator mode.

Free 10Q MD-102 Exam → Launch Simulator
📡

Don't miss the Friday Microsoft Endpoint & Security TV Digest

One email a week: the Intune, Entra & Windows changes that actually matter, the Alex & Sarah TV episode, and new production-ready PowerShell scripts. No spam, unsubscribe in one click.

Browse past TV episodes & issues →
Souhaiel Morhag
Souhaiel Morhag
Microsoft Endpoint & Modern Workplace Engineer

Souhaiel Morhag is a Microsoft Intune and endpoint management specialist with hands-on experience deploying and securing enterprise environments across Microsoft 365. He founded MSEndpoint.com to share practical, real-world guides for IT admins navigating Microsoft technologies — and built the MSEndpoint Academy at app.msendpoint.com/academy, a dedicated learning platform for professionals preparing for the MD-102 (Microsoft 365 Endpoint Administrator) certification. Through in-depth articles and AI-powered practice exams, Souhaiel helps IT teams move faster and certify with confidence.

Related Articles

Popular on MSEndpoint