Skip to content

Sporadic boot error when "Auto Login as Administrator" is enabled #208

Open

Description

@VanFlusen

I found a sporadic boot issue when testing PhoenixPE 2026.10.25 with Windows 11 26H2.
When the option "Auto Login as Administrator" is selected, the boot process irregularly fails with the following error:

Image

"The specified domain either does not exist or could not be contacted"

This behavior occurs unpredictably: Sometimes the boot process works perfectly on the very first try. In other cases, the error persists, requiring the computer to be restarted multiple times or completely powered off and turned back on before the login succeeds.
I tested this behavior on three different computers and was able to reproduce the error on all systems.

Activity

  1. homes32 commented on Oct 31, 2026

    @homes32
    Contributor

    I did notice some new event logs related to searching for workgroups/domains when testing 26H2. I'm sure it's related to network stack changes made in 26H2. Thanks for the report. I'll keep looking into it.

  2. VanFlusen commented on Oct 31, 2026

    @VanFlusen
    Author

    Just as an additional heads-up for debugging: This issue does not occur when using the PhoenixPE 2026.07.25 with the exact same 26H2 ISO.

  3. homes32 commented on Nov 17, 2026

    @homes32
    Contributor

    @VanFlusen can you delete taskschd.dll from Target\Windows\System32 and see if the issue persists?

  4. VanFlusen commented on Nov 21, 2026

    @VanFlusen
    Author

    I followed your suggestion and performed several tests on different computers.
    After extracting a fresh PhoenixPE builder, mounting and selecting the Windows ISO, I monitored the creation of the Target directory.
    As soon as taskschd.dll appeared in Target\Windows\System32, I deleted it while the build was still running.
    After the build completed, taskschd.dll was not present in boot.wim\sources\Windows\System32.
    Following this, I could no longer reproduce the automatic administrator logon issue, even after multiple tests on different computers.
    As a cross-check, I manually added taskschd.dll back to boot.wim\sources\Windows\System32. The original issue occurred again.

  5. homes32 commented on Nov 23, 2026

    @homes32
    Contributor

    Thank you for confirming. Looks like we are running into a race condition.

    1. At boot, Windows reads the computer name from the registry (the default set at build time is PhoenixPE) and uses it as the domain name for local accounts. Windows only checks the computer name once per boot.

    2. During startup, two things run at the same time without waiting for each other:

      • PENetwork renames the machine to a random PhoenixPE-xxxx.
      • The switch to the Administrator session logs on, and something in that logon triggers Task Scheduler. Without taskschd.dll present the call silently fails (confirmed by Event Log) and the race condition is never encountered.
    3. Usually the logon finishes first. The computer name and the account domain are both still PHOENIXPE, so the lookup of PHOENIXPE\Administrator works.

    4. About 1 boot in 5, the rename wins. The logon then looks up PHOENIXPE-xxxx\Administrator. Windows has no domain by that name, because it still knows the account as PHOENIXPE\Administrator, so the logon fails with "The specified domain either does not exist or could not be contacted" (error 1355).

    Without taskschd.dll, the logon never does that name lookup, so the race doesn't show up. The names stay out of sync for the rest of the session either way. (Confirmed by running whoami verifying the domain name is phoenixpe vs PhoenixPE-xxxx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions