azureblog.co.uk
← 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.

LogMicrosoft-Windows-User Device Registration/Admin
SourceMicrosoft-Windows-User Device Registration
AreaHybrid 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.

powershell2 lines
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-User Device Registration/Admin'; Id = 304 } -MaxEvents 50 |
    Format-List TimeCreated, Id, Message

Hunt 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.

kql5 lines
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-User Device Registration/Admin" and EventID == 304
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated desc

Related Hybrid join events

Search all 123 event IDs →