azureblog.co.uk
← cd ~/events
// events/204 · Hybrid join

Event ID 204Hybrid join join-phase error

Logged when the join phase fails, with the error code, HTTP status and message returned by the Device Registration Service.

LogMicrosoft-Windows-User Device Registration/Admin
SourceMicrosoft-Windows-User Device Registration
AreaHybrid join

What to check

Use the server error code to find the cause. TPM errors here often mean a cleared TPM or a bad sysprep image.

Codes you'll see in this event

CodeMeaning
0x801c03f2DSREG_E_DIRECTORY_FAILURE: DirectoryError returned by DRS.
0x801c0002DSREG_E_DEVICE_AUTHENTICATION_ERROR: AuthenticationError returned by DRS.
0x80090016NTE_BAD_KEYSET: TPM keyset missing, for example after the TPM was cleared.

Find it with PowerShell

Run on the machine that logs it.

powershell2 lines
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-User Device Registration/Admin'; Id = 204 } -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 == 204
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated desc

Related Hybrid join events

Search all 123 event IDs →