setting up your device for work

Sujin Khadka 0 Reputation points
2026-11-23T03:55:41.2533333+00:00

device preparation failed

securing your hardware(0x81039022) joining your organization network

(previous step failed)

registering your device for mobile management (previous step failed)

preparing your device for mobile management (previous step failed)

device set up

previous step failed

account setup

waiting for previous step finished

installation exceeded the time limit set by your organization please try again or contact your it support person for help.

what can we do in this situation?

Windows Insider program | Office on Insider preview
0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-11-23T03:56:54.1366667+00:00

    If this device is running a Windows Insider Preview build, reinstall a supported Windows 11 General Availability Channel build before attempting Autopilot again, because Insider builds do not meet the documented Autopilot software requirement.^1^

    1. Verify the Windows build

    At the failed setup screen:

    1. Press Shift+F10.
    2. Run winver.
    3. If it identifies an Insider Preview build, have IT reimage the device with a supported Windows 11 Pro, Enterprise, Education, Pro Education, or Pro for Workstations GA release.
    4. Start enrollment again after reimaging.

    If the device is already on a supported GA build, continue below. Microsoft does not publish a definitive standalone meaning for 0x81039022; because the first failure occurs at Securing your hardware, collect Autopilot and TPM diagnostics rather than treating the later MDM and account errors as separate failures.

    2. Export Autopilot and TPM diagnostics

    Connect a USB drive, note its drive letter, and then press Shift+F10. For a physical device using pre-provisioning or self-deploying mode, run:

    w32tm /resync /force
    mkdir E:\AutopilotLogs
    mdmdiagnosticstool.exe -area Autopilot;TPM -cab E:\AutopilotLogs\Autopilot.cab
    dir E:\AutopilotLogs
    exit
    

    Replace E: with the USB drive letter. For user-driven deployment, use -area Autopilot without ;TPM. The CAB includes event logs, TPM information, Autopilot settings, enrollment data, and application status.^2^

    Give that CAB file and the device serial number to the Intune administrator. Useful files include:

    • TpmHliInfo_Output.txt
    • microsoft-windows-moderndeployment-diagnostics-provider-autopilot.evtx
    • microsoft-windows-devicemanagement-enterprise-diagnostics-provider-admin.evtx
    • microsoft-windows-provisioning-diagnostics-provider-admin.evtx
    • MDMDiagReport_RegistryDump.reg^3^

    3. Checks for the Intune administrator

    1. Confirm the deployment mode and hardware
      • Pre-provisioning and self-deploying mode require a physical device supporting TPM 2.0 and TPM attestation; virtual machines are unsupported.^4^
      • Confirm TPM 2.0 is enabled and ready in UEFI/BIOS.
      • Install the latest OEM BIOS and TPM firmware before another deployment attempt.
    2. Check network access
      • Autopilot requires working DNS and access over ports 80, 443, and UDP 123.
      • Pre-provisioning/self-deploying TPM attestation also requires access to *.microsoftaik.azure.net.
      • Ensure authenticated proxies, SSL inspection, or restrictive firewalls are not blocking Microsoft Entra, Intune, Autopilot, or TPM-provider endpoints.^1^
    3. Review the Enrollment Status Page timeout
      • In the Intune admin center, go to Devices → Device onboarding → Enrollment → Windows → Enrollment Status Page.
      • Open the assigned ESP profile.
      • Enable Turn on log collection and diagnostics page for end users.
      • If diagnostics show that required applications are still installing rather than failing, increase Show an error when installation takes longer than specified number of minutes from its default 60 minutes.^5^
      • If an app has InstallationState = 4, investigate that app instead of merely extending the timeout; ESP stops processing applications after such an error.^2^

    4. TPM reset only as a last resort

    Do not clear the TPM as the first action. Clearing it removes TPM-protected keys and can cause data loss or loss of access to BitLocker-protected data. Back up the device and recover any BitLocker recovery keys first, then have IT or the hardware vendor perform the reset if diagnostics show that the TPM is not ready or not trusted.^6^

    If several devices of the same model fail at the identical stage, escalate the CAB files to the OEM to check for model-specific BIOS or TPM firmware issues. If only this device fails, compare its OS build, TPM firmware, clock, and network path with a successfully enrolled device.


    References

    1. Windows Autopilot requirements
    2. Troubleshooting the Enrollment Status Page
    3. Troubleshooting Microsoft Entra device registration and Windows Autopilot
    4. Windows Autopilot for pre-provisioned deployment
    5. Set up the Enrollment Status Page
    6. Windows enrollment attestation
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Thomas4-N 24,130 Reputation points Microsoft External Staff Moderator
    2026-11-28T11:02:34.3433333+00:00

    Hello Sujin Khadka,

    The error 0x81039022 at the "Securing your hardware" stage suggests an issue during Windows Autopilot enrollment, potentially related to TPM attestation. The later steps are unable to proceed because this initial stage failed.

    Since this is a work device being enrolled into your organization's management system, I recommend contacting your organization's IT administrator or help desk.

    Please provide them with:

    • Error code 0x81039022.
    • The failed step: Securing your hardware.
    • A screenshot of the setup error.

    Your IT administrator can check the device's TPM requirements and Autopilot/Intune enrollment diagnostics to identify the cause.

    Microsoft also documents the relevant requirements here: Windows Autopilot requirements.

    I wouldn't recommend resetting the TPM or reinstalling Windows without your IT team's guidance, as the device may be subject to organizational security policies.

    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.