Sign-in fails with Error 1317 (ERROR_NO_SUCH_USER) on legacy local admin account after 26H2 upgrade (Administrator Protection / ShadowAdminPairs issue)

Ale 0 Reputation points
2026-12-02T19:30:01.1166667+00:00

Hello everyone,

I am looking for either a permanent fix/workaround (such as a way to force Windows to recreate the missing shadow account) or hoping a Microsoft moderator/engineer can escalate this regression for an upcoming patch.

Environment:

  • OS: Windows 11 Pro (upgraded from 25H2 to 26H2, subsequently rolled back to 25H2 Build 26200.9974)
  • Trigger: Windows 11 26H2 feature update, as well as the October 2026 cumulative security update (KB5127648) and the November 10, 2026 cumulative security update (KB5132061)

Issue Description: After installing the 26H2 feature update or recent cumulative security updates (KB5127648 / KB5132061), signing in to my primary legacy local administrator account fails with error 1317 (ERROR_NO_SUCH_USER: "The specified account does not exist").

Specifically:

  • The password is accepted and the "Welcome" screen appears briefly, but Windows immediately aborts the logon session.
  • Event Viewer Details: Under Windows Logs > Application/System, Winlogon logs the failure with Win32Status 1317: ERROR_NO_SUCH_USER.

Account Comparison & Root Cause Isolation: The PC has two local accounts, both members of the local Administrators group:

  1. AccountA (Fails): Legacy local account originally created under Windows 10 and carried over through upgrades.
  2. AccountB (Works): Newer local account created in 2025.
  3. SAM / SID Comparison (verified via Get-LocalUser): Both accounts have identical group memberships (Administrators, Users) and flags (Enabled: True, PasswordRequired: False). The only structural difference is the RID: AccountA is the original OOBE account (-1001) created under Windows 10, while AccountB is -1007 (created in Dec 2025).

Technical Findings (Administrator Protection / Shadow Accounts):

  • When Administrator Protection is active (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\TypeOfAdminApprovalMode = 2), Windows generates a hidden shadow administrator account (ADMIN_AccountB) and maps it under HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ShadowAdminPairs (and SAM shadow mapping).
  • For AccountA, Windows fails to generate or map the corresponding ADMIN_AccountA shadow account after the update. Consequently, Winlogon fails with Win32Status 1317: ERROR_NO_SUCH_USER when attempting to resolve the paired shadow admin token.
  • Confirmed Workaround: Changing TypeOfAdminApprovalMode from 2 (Admin Approval Mode with Administrator Protection) to 1 (Admin Approval Mode) immediately resolves the sign-in failure for AccountA.

Questions for the Community / Microsoft:

  1. Has anyone found a way to manually trigger the provisioning of the missing ADMIN_<Username> shadow account and ShadowAdminPairs entry for a legacy Windows 10 local account so that Administrator Protection (TypeOfAdminApprovalMode = 2) can remain enabled?
  2. Could a Microsoft representative confirm if this is a known regression introduced in 26H2 / KB5127648 and still unpatched in KB5132061 (Nov 10, 2026), and escalate it to the engineering team?

Thank you in advance for any insights or help!

Windows for business | Windows Client for IT Pros | Directory services | User logon and profiles
0 comments No comments

2 answers

Sort by: Oldest
  1. Hoang Le Huy 2,485 Reputation points Independent Advisor
    2026-12-03T02:37:17.9733333+00:00

    Hello Ale,

    Based on the analysis you've already performed, I would not recommend attempting to manually create or manipulate ADMIN_<Username> accounts, ShadowAdminPairs, or SAM shadow mappings. These are internally managed by the Administrator Protection feature, and Microsoft does not publish or support a procedure for manually provisioning them.

    Your findings are compelling because the failure is reproducible, tied to TypeOfAdminApprovalMode = 2, affects only a legacy local administrator account, and disappears immediately when reverting to TypeOfAdminApprovalMode = 1. That strongly suggests the issue resides within Administrator Protection's account pairing logic rather than the local account, profile, or WMI/SAM database itself.

    I was unable to find Microsoft documentation describing a supported method to force regeneration of a missing shadow account mapping. Likewise, the current Windows 11 26H2 known-issues documentation does not list this specific sign-in failure scenario.

    There have, however, been documented Administrator Protection-related issues around the same update timeframe, including Group Policy and authentication-related side effects when TypeOfAdminApprovalMode is set to 2. That does not prove your scenario is the same bug, but it does indicate that Administrator Protection has experienced compatibility issues in recent releases.

    Given the lack of a documented repair mechanism and the possibility of corrupting local security account metadata, my recommendation is to continue using the confirmed workaround (TypeOfAdminApprovalMode = 1) or migrate to a newly created local administrative account until Microsoft publishes a fix. If this behavior remains reproducible on a fully patched build, I would open a formal Microsoft support case and provide the Event Viewer logs, SID comparison data, and Administrator Protection findings, as that is the most appropriate escalation path for what appears to be a potential product defect rather than a configuration issue.

    If my answer is useful for you, please hit Accept the answer for me please.

    HL.

    Was this answer helpful?


  2. ane 0 Reputation points
    2026-12-04T09:20:01.6+00:00

    We are experiencing a similar issue with Windows Administrator Protection in our enterprise environment, although the root cause is slightly different.

    We use Group Policy Preferences (GPP) to strictly manage the membership of the local Administrators group on our Windows clients.

    Our GPP configuration uses the following settings:

    • Delete all member users
    • Delete all member groups
    • Explicitly re-add only authorized users and groups

    This is a common security practice in enterprise environments to ensure that no unauthorized accounts retain local administrator privileges.

    However, Administrator Protection creates hidden system-managed administrator accounts (ADMIN_<username>) and adds them to the local Administrators group.

    When our Group Policy refreshes, these hidden accounts are removed from the Administrators group because they are not part of our predefined allowlist.

    As a result, all subsequent UAC elevation attempts fail because the hidden administrator account no longer has the required administrative privileges.

    This creates a conflict between two security mechanisms:

    1. Group Policy enforcing a strict allowlist for local administrators.
    2. Administrator Protection requiring dynamically created system-managed administrator accounts.

    Disabling the GPP cleanup options is not an acceptable solution for us, as it would weaken our existing security controls.

    Ideally, Microsoft should provide a supported mechanism to exclude these system-managed accounts from Group Policy membership enforcement or otherwise ensure that Administrator Protection continues functioning.

    Has anyone else encountered this issue? Is Microsoft aware of this compatibility problem, and is there an officially supported workaround that preserves strict local administrator group management?

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.