← cd ~/events
// events/304 · Hybrid join
Event ID 304Hybrid join failed (phase and error code)
On Windows 10 builds before 1803, this event records which phase of Microsoft Entra hybrid join failed and the error code.
| Log | Microsoft-Windows-User Device Registration/Admin |
|---|---|
| Source | Microsoft-Windows-User Device Registration |
| Area | Hybrid join |
What to check
Note the phase (precheck, discover, authentication or join) and error code, then use the matching section of the hybrid join troubleshooting guide. On newer builds run dsregcmd /status instead.
Find it with PowerShell
Run on the machine that logs it.
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-User Device Registration/Admin'; Id = 304 } -MaxEvents 50 |
Format-List TimeCreated, Id, MessageHunt for it in Sentinel or Log Analytics
This works once a data collection rule sends the Microsoft-Windows-User Device Registration/Admin log to your workspace, where it lands in the Event table.
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-User Device Registration/Admin" and EventID == 304
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated descRelated Hybrid join events
- Event ID 305: Hybrid join authentication error
- Event ID 307: Hybrid join failure event
- Event ID 201: Hybrid join discover phase error
- Event ID 204: Hybrid join join-phase error
- Event ID 220: Cannot read the computer object in Active Directory