azureblog.co.uk
← cd ~/intune-errors
// intune-errors · Enrollment

0x801C03F2DSREG_E_DIRECTORY_FAILURE

Microsoft Entra hybrid join failed with a DirectoryError, typically "The public key user certificate is not found on the device object". The device object is missing in Entra ID or its userCertificate attribute is not populated.

Hex0x801C03F2
Decimal-2145647630 (unsigned 2149319666)
AreaEnrollment

How to fix it

Make sure the userCertificate attribute is populated on the on-premises computer object and synced. If missing, run dsregcmd /leave, delete the MS-Organization-Access certificate, restart, then run a delta sync.

Find it on the device

Enrolment errors are logged in Event Viewer under Applications and Services Logs › Microsoft › Windows › DeviceManagement-Enterprise-Diagnostics-Provider › Admin:

powershell3 lines
Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 200 |
    Where-Object Message -match "0x801C03F2" |
    Format-List TimeCreated, Id, Message

Other enrollment errors

Search all 116 codes →