DefenderDeep dive

Defender for Endpoint SENSE event IDs: a quick reference for onboarding and connectivity

Look up Defender for Endpoint sensor (SENSE) event IDs by area: start-up, onboarding, telemetry, connectivity, ETW and MDM, each with the usual cause and the first check.

When a device is missing from the Defender portal, reports only now and then, or won't offboard cleanly, the sensor's own event log usually names the problem. This quick reference groups the SENSE event IDs you're most likely to meet, with the usual cause and the first check. The meanings follow Microsoft's event table; the checks are practical next steps.

Codes in this quick reference

  • Event ID 3 (SENSE): Defender for Endpoint service failed to startEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 19 (SENSE): OOBE (Windows Welcome) hasn't completed yetEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 20 (SENSE): can't wait for OOBE (Windows Welcome) to completeEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 42 or 43 (SENSE): a sensor component failed to perform an actionEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 106 or 107 (SENSE): service failed to start, problem with the MsSense DLL moduleEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 100 (SENSE): the SenseCE executable failed to startEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 85 (SENSE): failed to trigger the SenseIR executableEvent Viewer (Microsoft-Windows-SENSE)
  • Event ID 8 (SENSE): service failed to clean its configurationEvent Viewer (Microsoft-Windows-SENSE)

+ 43 more codes in the tables below.

How this guide is organized: How to read these codes → Start-up and onboarding events → Telemetry and dependent service events → Connectivity, authentication and upload events → Sensor components, configuration and MDM events → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these codes. 2. Start-up and onboarding events. 3. Telemetry and dependent service events. 4. Connectivity, authentication and upload events. 5. Sensor components, configuration and MDM events (4 parts: Event tracing and drivers; Cloud configuration, tags and running mode; Intune and other MDM (CSP) events; In the System log). 6. How to verify a fix. Toolbox: 0x87D1FDE8, 0x87D101A9, Event ID 40, Get-MpComputerStatus, Microsoft-Windows.1How to read these codes2Start-up and onboardingevents3Telemetry and dependentservice events4Connectivity, authenticationand upload events5Sensor components,configuration and MDM events6How to verify a fixEvent tracing and driversCloud configuration, tagsand running modeIntune and other MDM(CSP) eventsIn the System logTOOLBOX0x87D1FDE80x87D101A9Event ID 40Get-MpComputerStatusMicrosoft-WindowsHow this guide is organized: How to read these codes → Start-up and onboarding events → Telemetry and dependent service events → Connectivity, authentication and upload events → Sensor components, configuration and MDM events → How to verify a fixFlow diagram of the article's sections in reading order: 1. How to read these codes. 2. Start-up and onboarding events. 3. Telemetry and dependent service events. 4. Connectivity, authentication and upload events. 5. Sensor components, configuration and MDM events (4 parts: Event tracing and drivers; Cloud configuration, tags and running mode; Intune and other MDM (CSP) events; In the System log). 6. How to verify a fix. Toolbox: 0x87D1FDE8, 0x87D101A9, Event ID 40, Get-MpComputerStatus, Microsoft-Windows.1How to read these codes2Start-up and onboarding events3Telemetry and dependent service events4Connectivity, authentication and uploadevents5Sensor components, configuration and MDMeventsEvent tracing and driversCloud configuration, tags and running modeIntune and other MDM (CSP) eventsIn the System log6How to verify a fixTOOLBOX0x87D1FDE80x87D101A9Event ID 40Get-MpComputerStatusMicrosoft-Windows
At a glance: how this guide is organized · 4 steps · 5 key settings and tools

How to read these codes#

How to triage a Defender for Endpoint sensor eventWhich log is the event in? if Application log: Onboarding script event (Source WDATPOnboarding; its IDs overlap SENSE IDs.); if MDM Admin log: CSP event from Intune or other MDM (IDs 1800 to 1840; check the SENSE log too.); if SENSE Operational: Is it an error that repeats, or does it match your symptom? if No: Routine: keep it in view (Informational events show what good looks like.); if Yes: Is it event 4, 5, 6, 7 or 15? if Yes: Follow the dedicated walkthrough (Server contact, connection or onboarding parameters.); if No: Read the runtime value, then the table (A failure code, URL or service name says more than the ID.)Which log is the event in?NOTEOnboarding scripteventSourceWDATPOnboarding;its IDs overlapSENSE IDs.Application logNOTECSP event fromIntune or otherMDMIDs 1800 to 1840;check the SENSE logtoo.MDM Admin logIs it an error that repeats, ordoes it match your symptom?OKRoutine: keep it inviewInformational eventsshow what goodlooks like.NoIs it event 4, 5, 6, 7 or 15?FIXFollow thededicatedwalkthroughServer contact,connection oronboardingparameters.YesFIXRead the runtimevalue, then thetableA failure code, URLor service name saysmore than the ID.NoYesSENSE OperationalHow to triage a Defender for Endpoint sensor eventWhich log is the event in? if Application log: Onboarding script event (Source WDATPOnboarding; its IDs overlap SENSE IDs.); if MDM Admin log: CSP event from Intune or other MDM (IDs 1800 to 1840; check the SENSE log too.); if SENSE Operational: Is it an error that repeats, or does it match your symptom? if No: Routine: keep it in view (Informational events show what good looks like.); if Yes: Is it event 4, 5, 6, 7 or 15? if Yes: Follow the dedicated walkthrough (Server contact, connection or onboarding parameters.); if No: Read the runtime value, then the table (A failure code, URL or service name says more than the ID.)Which log is the event in?Application logNOTEOnboarding script eventSource WDATPOnboarding; its IDs overlap SENSE IDs.MDM Admin logNOTECSP event from Intune or other MDMIDs 1800 to 1840; check the SENSE log too.SENSE OperationalIs it an error that repeats, or does it matchyour symptom?NoOKRoutine: keep it in viewInformational events show what good looks like.YesIs it event 4, 5, 6, 7 or 15?YesFIXFollow the dedicated walkthroughServer contact, connection or onboardingparameters.NoFIXRead the runtime value, then thetableA failure code, URL or service name saysmore than the ID.
Figure 1 · Decision tree How to triage a Defender for Endpoint sensor event. Check which log the event came from, then decide whether it's a real problem before you look it up in the tables.

SENSE is Microsoft's internal name for the behavioral sensor behind Defender for Endpoint. It logs to Applications and Services Logs › Microsoft › Windows › SENSE › Operational (Microsoft-Windows-SENSE/Operational). Most messages include a value filled in at runtime, such as a failure code, URL, service name or limit, and that value often tells you more than the ID. Filter on Critical, Error and Warning to find problems, but keep the informational events in view: they show what "good" looks like.

PowerShell
# Errors and warnings from the sensor log in the last 24 hours
Get-WinEvent -FilterHashtable @{
    LogName   = 'Microsoft-Windows-SENSE/Operational'
    Level     = 1, 2, 3
    StartTime = (Get-Date).AddHours(-24)
} | Select-Object TimeCreated, Id, LevelDisplayName, Message |
    Format-Table -AutoSize -Wrap
  • The onboarding script has its own numbers. Onboarding scripts log to Windows Logs › Application under the source WDATPOnboarding, and the IDs overlap: script event 40 means the onboarding status isn't 1, while SENSE event 40 means the battery is low.
  • MDM events can sit in a second log. The event table includes CSP events (1800 to 1840), recorded when an MDM service such as Intune reads or writes Defender for Endpoint values, and Microsoft's onboarding guide shows event 1819 in DeviceManagement-Enterprise-Diagnostics-Provider › Admin. Check both logs.
  • Many IDs are routine. Treat an event as a problem when it's an error that repeats, or when it matches your symptom.

Note: Events 4, 5, 6, 7 and 15 (server contact, connection failures, and missing or unreadable onboarding parameters) have full walkthroughs on this site, so they aren't repeated below. See Defender for Endpoint onboarding failures, Device shows "Inactive" or "No sensor data" and Moving to streamlined connectivity.

Start-up and onboarding events#

Service start-up and Windows setup#

CodeMeaningUsual causeFirst check
3The service failed to start (failure code in the text)Start-up blocked; the reason is usually in nearby eventsRead events 42, 43, 45, 106 and 107 around it; run sc.exe query sense
19OOBE (Windows Welcome) hasn't completedDevice still in setup; the service waits for Windows updates to finishLet setup and updates finish, restart, then look for event 18
20The service can't wait for OOBE to completeInternal error while waiting for setupRestart; install any pending Windows updates
42, 43A sensor component failed to perform an action (component and exception in the text)Internal error; the service didn't startNote the component and restart; contact Microsoft Support if it repeats
106, 107The service failed to start: problem loading the MsSense DLL moduleFault in the sensor's own moduleContact Microsoft Support with a Client Analyzer collection
100The SenseCE executable failed to startA sensor process failed at start-upRestart; contact Support if it persists
85Failed to trigger the SenseIR executableA sensor process didn't startRestart; contact Support if it persists

Onboarding#

CodeMeaningUsual causeFirst check
8The service failed to clean its configurationHarmless during onboarding; during offboarding the service keeps runningOffboarding: restart the device
9The service failed to change its start typeOnboarding or offboarding didn't complete cleanlyOnboarding: restart and rerun the package. Offboarding: contact Support
10The service failed to persist the onboarding informationOnboarding didn't completeRerun the onboarding package; contact Support if it persists
11Onboarding or reonboarding completedSuccessNone; allow several hours for the device to appear in the portal
12Failed to apply the default configurationTemporary conditionNone; it should clear shortly
25, 26Failed to reset the health status, or to set the onboarding status, in the registryThe device reports, but may not look onboarded in the registry or Configuration ManagerCheck OnboardingState under HKLM\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status; redeploy the package
27Failed to enable SENSE aware mode in Microsoft Defender Antivirus; onboarding failedDefender Antivirus couldn't switch into the mode it uses with the sensorConfirm real-time antimalware protection is running; redeploy the package
30Failed to disable SENSE aware mode in Microsoft Defender AntivirusThe reverse of event 27 failedSame checks as 27; contact Support if it persists
33The service failed to persist the SENSE GUIDThe device identifier wasn't saved, so the device can appear twice in the portalCheck registry permissions; look for duplicate devices

Offboarding#

CodeMeaningUsual causeFirst check
29Failed to read the offboarding parametersNo internet access, or an expired offboarding packageRestore connectivity, download a fresh offboarding package and rerun it
32The service failed to request to stop itself after offboardingError at the end of offboardingConfirm the Sense start type is Manual (sc.exe qc sense), then restart
44Offboarding completedSuccessNone
56Failed to remove the Secure ETW autologgerCleanup error during offboardingContact Support

Telemetry and dependent service events#

The sensor works with other Windows services, notably Connected User Experiences and Telemetry (DiagTrack). Since Windows 10 version 1809 the EDR service doesn't depend directly on DiagTrack, but Microsoft still advises checking it when devices aren't reporting correctly: sc qc diagtrack should show AUTO_START.

CodeMeaningUsual causeFirst check
17Failed to change the Connected User Experiences and Telemetry service locationWindows telemetry service problemConfirm DiagTrack is enabled and running; rerun the onboarding package
28Registration with the Connected User Experiences and Telemetry service failedWindows telemetry service problemSame as 17
34Couldn't add itself as a dependency of the telemetry service; onboarding failedDiagTrack disabled or failingsc config diagtrack start=auto and sc start diagtrack, then redeploy
62Failed to start the Connected User Experiences and Telemetry serviceDiagTrack disabled or brokenCheck Microsoft-Windows-UniversalTelemetryClient/Operational
68A service's start type is unexpected (name, actual and expected type in the text)A Group Policy setting, baseline or script changed a service the sensor needsRestore the expected start type, then find what changed it
69A service the sensor needs is stoppedThe named service stopped or failedStart it; contact Support if it keeps happening
87, 89Can't start an external service, or can't update its start typeThe sensor's own repair attempt failedFix the service manually; contact Support

Events 63, 64, 86 and 88 record the sensor fixing a start type or restarting a service by itself. They're informational, but find out what keeps changing the start type, and contact support if event 64 keeps reappearing.

Connectivity, authentication and upload events#

The sensor connects over WinHTTP in the system context, so the proxy that matters is what netsh winhttp show proxy reports (or a static proxy set for the sensor), not the browser's.

CodeMeaningUsual causeFirst check
99Sense hit an error communicating with the server (error and result in the text)Network, proxy or TLS inspection problemRead the events that follow; run the Client Analyzer; check the WinHTTP proxy
401, 409Failed to generate, or to open, a crypto keyProblem with the sensor's authentication keyContact Support only if the device isn't reporting
402Failed to persist the authentication stateSame area as 401Contact Support only if the device isn't reporting
405Failed to communicate with the authentication service (HRESULT and HTTP error code in the text)A request to the authentication service didn't get throughInformational if occasional; if it repeats and reporting stops, check proxy, firewall and TLS inspection
406Request rejected by the authentication serviceUnexpected response from the serviceInformational; a later event 403 (registration completed) shows it succeeded
411Cyber telemetry upload suspended: invalid or expired tokenThe token needs refreshingNone if event 412 (upload resumed) follows; otherwise treat it as connectivity
92Stopped sending sensor cyber data: data quota exceededThrottling until the quota period passesNone; event 93 shows sending resumed
37A module is about to exceed its quotaClose to its allocation for the current 24-hour windowNone; event 92 may follow
38, 40Network (metered) or battery identified as low; the server is contacted every N minutesMetered connection or low batteryNone; events 39 and 41 mark the return to normal
97Connectivity issues to the cloud for the DLP scenarioNetwork problem affecting DLP classificationCheck network connectivity; event 98 means it was restored

Sensor components, configuration and MDM events#

Event tracing and drivers#

CodeMeaningUsual causeFirst check
45Failed to register and start an event trace sessionETW session creation failed, so the service didn't startRestart; contact Support if it persists
46Event trace session not started: lack of resourcesToo many active trace sessions; it retries every minute and reports no sensor events meanwhileRun logman query -ets to see what else is tracing; event 47 means it recovered
48Failed to add a provider to an event trace sessionThat provider's events aren't reportedCheck the error code; contact Support if it persists
55Failed to create the Secure ETW autologgerError creating the sensor's protected trace loggerRestart; contact Support if it persists
81Failed to create the Defender for Endpoint ETW autologgerError creating the ETW sessionRestart; contact Support if it persists
65Failed to load the Microsoft Security Events Component Minifilter driver (MsSecFlt.sys)The minifilter didn't loadLook for MsSecFlt in fltmc filters; restart; contact Support if it persists

Cloud configuration, tags and running mode#

CodeMeaningUsual causeFirst check
51, 52New cloud configuration failed to apply; last known good (51) or default (52) configuration usedA bad configuration file from the serviceAfter 52 the sensor retries within 5 minutes; contact Support if event 50 (applied) doesn't follow, or 51 keeps repeating
74A device tag in the registry exceeds the length limitThe tag set through the registry is too longShorten the tag; the limit is in the event text
84The sensor set the Defender Antivirus running mode (force passive mode and result in the text)Active or passive mode being appliedInformational; compare with AMRunningMode from Get-MpComputerStatus
90Failed to configure System Guard Runtime Monitor for the cloud geo-regionSystem Guard Runtime Monitor can't send attestation dataCheck permissions on HKLM\Software\Microsoft\Windows\CurrentVersion\Sgrm; then contact Support

Intune and other MDM (CSP) events#

CodeMeaningUsual causeFirst check
1819CSP: Failed to Set Node's Value (NodeId, TokenName and Result in the text)The MDM service couldn't write a Defender for Endpoint value, such as the onboarding blobNote the TokenName; match it with Intune error 0x87D1FDE8 or 0x87D101A9; confirm HKLM\SOFTWARE\Policies\Microsoft\Windows Advanced Threat Protection exists
1831CSP: Sense is configured as delay-start and hasn't started yetIntune checked SenseIsRunning before the delayed-start service ranNone; Microsoft says that SenseIsRunning noncompliance should clear within 24 hours
1836CSP: Set Device Tagging Group exceeded the allowed limitThe device tag in the MDM policy is too longShorten the tag in the policy

In the System log#

CodeMeaningUsual causeFirst check
1 (System)The backing file for the real-time session "SenseNdrPktmon" reached its maximum sizeHeavy network traffic; the capped capture session skips some packetsNone; it's informational

For installer errors on Windows Server 2012 R2 and 2016, see the unified solution guide.

How to verify a fix#

  1. Restart the device and confirm sc.exe query sense reports RUNNING and OnboardingState is 1.
  2. Read the log since the restart: a healthy start shows event 1 (service started) and event 4 (contacted the server), usually with 50 or 53 for the cloud configuration, and no new errors from the tables above.
  3. In the Microsoft Defender portal, open Assets › Devices and check the device's sensor health state is Active with a current last-seen time. For Intune-managed devices, Endpoint security › Endpoint detection and response › EDR Onboarding Status should show it as onboarded.
  4. If connectivity was the problem, rerun the Client Analyzer and confirm the service URLs pass.
PowerShell
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status' |
    Select-Object OnboardingState, OrgId
$boot = (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-SENSE/Operational'; StartTime = $boot } |
    Where-Object Id -in 1, 4, 50, 53 | Select-Object TimeCreated, Id, Message

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

M365 Subject Matter Expert, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)