In today’s post, we will identify the cause and then provide possible resolutions to the issue of event ID 307 and event ID 304 with error code 0x801c001d are logged after you deploy Windows 11/10 on a device.
Error code 0x801c001d – Event ID 307 and 304
When you deploy Windows on a device, the following events are logged:
Log Name: Microsoft-Windows-User Device Registration/Admin
Source: User Device Registration
Event ID: 307
Level: Error
Description:
Automatic registration failed. Failed to lookup the registration service information from Active Directory. Exit code: Unknown HResult Error code: 0x801c001d. See http://go.microsoft.com/fwlink/?LinkId=623042
Log Name: Microsoft-Windows-User Device Registration/Admin
Source: Microsoft-Windows-User Device Registration
Event ID: 304
Level: Error
Description:
Automatic registration failed at join phase. Exit code: Unknown HResult Error code: 0x801c001d. Server error: . Debug Output:\r\n undefined.
You’ll encounter this issue because these event IDs 307 and 304 occur when the Active Directory infrastructure is not prepared for Hybrid join. When the device tries to do Hybrid join, the registration fails, and the events are logged.
Typically, organizations with an on-premises footprint rely on imaging methods to provision devices, and they often use Configuration Manager or Group Policy (GP) to manage them.
If your environment has an on-premises AD footprint and you also want to benefit from the capabilities provided by Azure Active Directory, you can implement Hybrid Azure AD joined devices. These devices are devices that are joined to your on-premises Active Directory and registered with your Azure Active Directory.
To resolve this issue, Microsoft in a support article points out that these event IDs 307 and 304 can be safely ignored because if the AD infrastructure is in a non-Hybrid join environment, these event IDs are expected during Windows deployment.
However, if you’re experiencing this issue whilst in a Hybrid join environment, refer to this Microsoft document for troubleshooting steps.
Hope this post guides you in the right direction.