HomeNewsletterCommunityToolsArchiveBlogAboutQuick Links Subscribe free
← Back to Blog
Windows KB5094126Windows 1124H2Sign-in FailurePatch TuesdayTroubleshooting

KB5094126 Sign-in Failure Fix — Windows 11 24H2

IA
Imran Awan
27 June 2026

KB5094126 Breaks Microsoft Account Sign-In in Teams, OneDrive & Edge — Complete Fix Guide

Published 27 June 2026  ·  Windows Patching  ·  Estimated read: 10 min

Active Known Issue — Partially Resolved. The June 9 2026 Patch Tuesday update KB5094126 (and the earlier March 10 update KB5079473) introduced a sign-in regression affecting Microsoft Account (MSA) users. A fix is available as KB5095093, released June 23 2026. Devices that cannot immediately update require the workarounds described in this guide.

If users on your fleet are reporting that Microsoft Teams, OneDrive, Edge, Word, Excel, or Microsoft 365 Copilot are suddenly showing the error "You'll need the Internet for this" — despite being fully connected — and the issue appeared after Patch Tuesday on June 9 2026, you are almost certainly hitting the MSA sign-in regression introduced in KB5094126. This post walks through every affected configuration, the exact scope of the issue, and step-by-step remediation for IT admins managing Windows endpoints at scale.

What Exactly Is Breaking?

KB5094126 introduced a regression in the Web Account Manager (WAM) component of Windows, which is the underlying authentication broker responsible for MSA-based (personal Microsoft account) sign-ins across the operating system shell and first-party Microsoft applications. When WAM attempts to silently re-authenticate an MSA session after the update, the token refresh flow fails with a network-not-available error even when network connectivity is fully functional.

The symptom surfaces as one or more of the following:

Entra ID / Azure AD accounts are NOT affected. This regression is strictly limited to personal Microsoft Accounts (MSA). Users signing in with work or school accounts managed through Microsoft Entra ID (formerly Azure AD) — including hybrid-joined and Entra-joined devices — will not experience this sign-in failure. If your fleet is entirely Entra-managed, the MSA sign-in issue does not apply, though the BitLocker recovery trigger may still be relevant.

Affected Windows Versions

The following releases are confirmed affected by the MSA WAM regression introduced in KB5094126 (June 9) and KB5079473 (March 10):

Windows Version Problematic KB Fix KB Affected Apps Entra ID Users
Windows 11 26H1 KB5094126 KB5095093 Teams, OneDrive, Edge, M365, Copilot Not affected
Windows 11 25H2 KB5094126 KB5095093 Teams, OneDrive, Edge, M365, Copilot Not affected
Windows 11 24H2 KB5094126 KB5095093 Teams, OneDrive, Edge, M365, Copilot Not affected
Windows 11 23H2 KB5094126 KB5095093 Teams, OneDrive, Edge, M365, Copilot Not affected
Windows 10 22H2 KB5079473 / KB5094126 KB5095093 Teams, OneDrive, Edge, M365 Not affected
Windows 10 LTSC 2021 / 2019 / 2016 KB5079473 KB5095093 OneDrive, Edge (if installed) Not affected
Windows Server 2025 / 2022 / 2019 / 2016 / 2012 R2 / 2012 KB5094126 / KB5079473 KB5095093 OneDrive (if deployed), Edge Not affected

Step 1 — Confirm the Affected Build Number

Before applying remediation, confirm that the device is actually running a patched build containing the regression. Run the following one-liner from an elevated PowerShell prompt or via Intune Proactive Remediations (detection script):

Check-BuildAndKBStatus.ps1
# Retrieve OS build and check for the problematic and fix KBs
$os = Get-CimInstance -ClassName Win32_OperatingSystem
$build = $os.BuildNumber
$caption = $os.Caption

Write-Host "OS: $caption"
Write-Host "Build: $build"

# Check installed hotfixes for the problematic KBs
$badKBs   = @('KB5094126', 'KB5079473')
$fixKB    = 'KB5095093'

$installed = Get-HotFix | Select-Object -ExpandProperty HotFixID

foreach ($kb in $badKBs) {
    if ($installed -contains $kb) {
        Write-Warning "PROBLEMATIC KB DETECTED: $kb is installed"
    }
}

if ($installed -contains $fixKB) {
    Write-Host "FIX KB $fixKB is already installed — device is remediated." -ForegroundColor Green
} else {
    Write-Warning "FIX KB $fixKB is NOT installed — update required."
}

If the script reports that KB5094126 or KB5079473 is present without KB5095093, the device is in the affected state and requires remediation.

Step 2 — Primary Fix: Install KB5095093 via Windows Update

Microsoft released KB5095093 on June 23 2026 as a cumulative update that supersedes KB5094126 and includes the WAM authentication broker fix. This is the recommended and permanent resolution for all affected Windows versions.

Managed devices (Intune / WSUS / ConfigMgr):

Unmanaged / standalone devices: Open Settings > Windows Update > Check for updates. KB5095093 should appear as a required quality update. Install and restart.

After installing KB5095093 and rebooting, MSA sign-in via WAM is restored automatically. Users do not need to re-add their Microsoft Account — the existing account token is refreshed silently on first sign-in after reboot. If the account does not re-authenticate automatically within a few minutes, proceed to the manual re-add steps in Step 3.

Step 3 — Temporary Workaround (When Immediate Update Is Not Possible)

In environments where deploying KB5095093 immediately is not feasible — for example, due to change-freeze windows, ring-based deferral policies, or WSUS approval delays — the following workarounds can restore MSA sign-in functionality without removing the problematic update.

Workaround A: Remove and Re-Add the Microsoft Account

The WAM token cache for the affected MSA becomes corrupt after the regression hits. Removing and re-adding the account forces WAM to issue a fresh token through the browser-based authentication flow, which bypasses the broken silent-refresh path.

  1. Open Settings > Accounts > Email & accounts
  2. Locate the personal Microsoft Account entry and select Remove
  3. Confirm removal — this does not delete any data, it only removes the local credential cache
  4. Select Add a Microsoft account and complete the sign-in flow in the browser window that opens
  5. Relaunch the affected application (Teams, OneDrive, etc.)
Note for shared / kiosk devices: On devices where multiple users share MSA sign-in, each user profile must perform this re-add step individually. The WAM token cache is per-user, so admin remediation of one profile does not fix other profiles.

Workaround B: Use Browser-Based Sign-In for Teams and OneDrive

As an interim measure, users can access Teams and OneDrive through the browser at teams.microsoft.com and onedrive.live.com. The browser-based authentication path is not affected by the WAM regression because Edge's MSA sign-in for web properties uses a separate authentication path that does not go through the broken WAM silent-refresh flow.

Workaround C: Scripted WAM Token Cache Flush (Advanced)

For IT admins who want to automate the token cache flush across a fleet without waiting for KB5095093 approval, the following script clears the WAM token cache for all user profiles on a device. This is equivalent to the manual remove-and-re-add flow but can be deployed silently via Intune Proactive Remediations or a ConfigMgr script.

Warning: This script clears the WAM token store for all MSA accounts on the device. Users will be prompted to sign in again for all MSA-connected apps after the next reboot. Test in a pilot group before broad deployment. Do not run on Entra-joined devices where MSA sign-in is not used — there is no benefit and the disruption is unnecessary.
Flush-WAMTokenCache.ps1
# Flush WAM MSA token cache to work around KB5094126 sign-in regression
# Requires: Run as SYSTEM or local administrator
# Effect:   Users will re-authenticate on next app launch (browser flow, not silent WAM)
# Ref:      https://learn.microsoft.com/en-us/windows/release-health/resolved-issues-windows-11-25h2

$ErrorActionPreference = 'Stop'

# Stop apps that hold WAM token handles
$appsToStop = @('Teams', 'OneDrive', 'msedge', 'WINWORD', 'EXCEL')
foreach ($app in $appsToStop) {
    Get-Process -Name $app -ErrorAction SilentlyContinue | Stop-Process -Force
}

# Enumerate all user profiles on this device
$profiles = Get-CimInstance -ClassName Win32_UserProfile |
    Where-Object { -not $_.Special -and $_.LocalPath -notlike '*systemprofile*' }

foreach ($profile in $profiles) {
    $wamPath = Join-Path $profile.LocalPath 'AppData\Local\Microsoft\TokenBroker\Cache'
    if (Test-Path $wamPath) {
        Write-Host "Clearing WAM cache for: $($profile.LocalPath)"
        Remove-Item -Path "$wamPath\*" -Recurse -Force -ErrorAction SilentlyContinue
    }
}

Write-Host "WAM token cache flushed. Users will be prompted to re-authenticate on next app launch." -ForegroundColor Green

Peter van der Woude's blog (petervanderwoude.nl) is an excellent resource for packaging this as an Intune Proactive Remediation with a detection script that checks for the fix KB before running — avoiding unnecessary token cache flushes on already-remediated devices.

Step 4 — Resolving the BitLocker Recovery Trigger

A secondary issue introduced by KB5094126 affects a subset of devices using BitLocker with TPM-bound encryption keys. The update modifies boot measurements in a way that causes the TPM PCR (Platform Configuration Register) values to change, invalidating the sealed BitLocker key and triggering a recovery key prompt on the next boot.

This is distinct from the MSA sign-in issue and affects both MSA and Entra ID users. It is most commonly observed on:

Immediate steps if a device enters BitLocker recovery:

  1. Retrieve the BitLocker recovery key from Microsoft Entra ID (for Entra-joined devices: Entra admin center > Devices > [Device name] > Recovery keys) or from Active Directory (for domain-joined devices: use Active Directory Users and Computers > right-click computer object > BitLocker Recovery)
  2. Enter the 48-digit recovery key at the boot screen
  3. Once booted, open an elevated PowerShell prompt and run manage-bde -protectors -adbackup C: -id {KeyID} to ensure the recovery key is backed up after the fix KB is applied
  4. Install KB5095093, which includes the corrected boot measurement handling, then reboot — the TPM PCR values stabilise and BitLocker should not re-trigger recovery on subsequent boots
Proactive fleet check: Jan Ketil Skanke (skannke.blog) has published guidance on using Intune's Endpoint Security > Disk encryption reports to identify devices that have recently entered BitLocker recovery — this is a useful signal for identifying KB5094126-affected endpoints before users call the helpdesk.

Step 5 — Fixing the OneDrive File Explorer Integration

Beyond the sign-in failure, KB5094126 breaks the OneDrive shell namespace extension on some configurations, causing the OneDrive folder to disappear from the File Explorer navigation pane or show a persistent error badge. This is related to a separate OneDrive shell handler registration that is disrupted by the WAM token failure. Installing KB5095093 resolves this automatically for most devices, but if the File Explorer entry does not reappear after the fix update and reboot, the following will force a re-registration:

Repair-OneDriveShellIntegration.ps1
# Re-register OneDrive shell namespace extension after KB5094126 disruption
# Run as the affected user (not SYSTEM) — shell registration is per-user

# Kill OneDrive if running
Get-Process -Name 'OneDrive' -ErrorAction SilentlyContinue | Stop-Process -Force

# Locate OneDrive executable (handles both per-user and machine-wide installs)
$oneDrivePaths = @(
    "$env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe",
    "$env:ProgramFiles\Microsoft OneDrive\OneDrive.exe",
    "${env:ProgramFiles(x86)}\Microsoft OneDrive\OneDrive.exe"
)

$oneDriveExe = $oneDrivePaths | Where-Object { Test-Path $_ } | Select-Object -First 1

if ($oneDriveExe) {
    Write-Host "Found OneDrive at: $oneDriveExe"
    # Reset shell integration and re-register namespace extension
    Start-Process -FilePath $oneDriveExe -ArgumentList '/reset' -Wait
    Start-Sleep -Seconds 5
    Start-Process -FilePath $oneDriveExe
    Write-Host "OneDrive reset and restarted. File Explorer integration should restore within 30 seconds."
} else {
    Write-Warning "OneDrive executable not found. Verify OneDrive is installed."
}

Verification After Remediation

Once KB5095093 is installed and the device has rebooted, verify the fix using the detection script from Step 1. Additionally, confirm end-to-end MSA sign-in by checking that:

Microsoft's official tracking pages for this issue are maintained at the Windows Release Health dashboard. See Resolved issues — Windows 11 25H2, Resolved issues — Windows 11 24H2, and the live status page at Windows 11 25H2 status.

Summary

The KB5094126 / KB5079473 MSA sign-in regression is a well-scoped issue: it affects personal Microsoft Accounts only, it is fixed by KB5095093 (June 23 2026), and it has no impact on Entra ID managed identities. The secondary BitLocker recovery trigger is broader and affects all BitLocker-enabled devices regardless of account type. For most managed environments the remediation path is straightforward — expedite KB5095093 approval and deploy. For organisations under change freeze, the WAM token cache flush script provides a usable interim workaround with minimal user impact. Michael Niehaus (oofhours.com) has noted in the Autopilot community that new Autopilot enrollments on affected builds may also exhibit MSA-linked provisioning issues during the out-of-box experience phase — another reason to prioritise KB5095093 deployment promptly.

Share this post
LinkedIn X / Twitter Reddit Bluesky

More from EndpointWeekly

Windows
Windows Update Stuck? The Complete Fix Guide (Every Verified…
Windows Update stuck at 0%, failing with an error code, or frozen at boot? This complete…
Windows
Windows Hello for Business Provisioning Failure — Complete Fix
WHfB provisioning prompt never appears, or disappears silently? Event IDs 360, 362, and…
Windows
Get Ready for Windows 11 26H2: What IT Teams Need to Do Now
Windows 11 version 26H2 is confirmed for Fall 2026 and is already in the Experimental…