DefenderTroubleshooting

Device shows "Inactive" or "No sensor data" in Microsoft Defender: how to troubleshoot

What Inactive, Impaired communications and No sensor data mean in the Defender device inventory, and how to check the sensor, onboarding state, proxy and duplicate device records.

A device marked Inactive or Misconfigured in the Defender device inventory is either a blind spot, where the sensor isn't sending the telemetry you're paying for, or a stale record cluttering your reports. In this post I'll explain what each sensor health state means, then walk through the checks that tell you whether to fix the device, fix the network, or simply let an old record age out.

How this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (5 steps: Rule out a stale or duplicate record; Check the sensor and onboarding state; Check the proxy the sensor actually uses; Run the MDE Client Analyzer; Make sure Defender Antivirus isn't disabled by policy). 4. Verify the fix. 5. Prevent it next time. Toolbox: …\Microsoft\Windows Defender, Assets › Devices, SENSE › Operational, OnboardingState, DiagTrack.1Symptoms2Why it happens3How to fix it4Verify the fix5Prevent it nexttime1Rule out a stale orduplicate record2Check the sensorand onboarding st…3Check the proxythe sensor actuall…4Run the MDE ClientAnalyzer5Make sureDefender Antiviru…TOOLBOX…\Microsoft\Windows DefenderAssets › DevicesSENSE › OperationalOnboardingStateDiagTrackHow this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (5 steps: Rule out a stale or duplicate record; Check the sensor and onboarding state; Check the proxy the sensor actually uses; Run the MDE Client Analyzer; Make sure Defender Antivirus isn't disabled by policy). 4. Verify the fix. 5. Prevent it next time. Toolbox: …\Microsoft\Windows Defender, Assets › Devices, SENSE › Operational, OnboardingState, DiagTrack.1Symptoms2Why it happens3How to fix it1Rule out a stale or duplicate record2Check the sensor and onboarding state3Check the proxy the sensor actually uses4Run the MDE Client Analyzer5Make sure Defender Antivirus isn't disabled bypolicy4Verify the fix5Prevent it next timeTOOLBOX…\Microsoft\Windows DefenderAssets › DevicesSENSE › OperationalOnboardingStateDiagTrack
At a glance: how this guide is organised · 5 fix steps · 5 key tools

Symptoms#

  • In Assets › Devices, the Sensor health state column shows Inactive, or Misconfigured with the detail Impaired communications or No sensor data.
  • The device timeline has gaps, and alerts you'd expect never appear.
  • The same computer name shows up twice: one Active record and one Inactive.
  • Intune still reports the EDR onboarding policy as Succeeded.

Why it happens#

StateWhat it meansTypical causes
InactiveNo signals from the device for more than seven daysDevice switched off or out of use; reinstalled or renamed (a new record is created and the old one goes inactive); offboarded; sensor stopped reporting
Misconfigured: Impaired communicationsOnly limited communication with the serviceProxy, firewall or WinHTTP configuration
Misconfigured: No sensor dataThe device reaches the service but sends only partial sensor dataConnectivity or proxy gaps, the Windows diagnostic data service disabled, or Defender Antivirus disabled by policy alongside third-party antivirus

Inactive isn't automatically a fault. An offboarded device stays in the inventory, turns Inactive after seven days, and its profile (without data) can remain for up to 180 days.

How to fix it#

1. Rule out a stale or duplicate record#

Search the inventory for the device name. If a newer Active record exists, the device was most likely reinstalled or renamed and the Inactive entry is just history. With Plan 2, this advanced hunting query lists names that map to more than one device ID:

KQL
DeviceInfo
| where Timestamp > ago(30d)
| summarize LastReport = max(Timestamp), Records = dcount(DeviceId) by DeviceName
| where Records > 1
| order by LastReport desc

If the device you care about has a single record and it's Inactive or Misconfigured, move on to the device itself.

2. Check the sensor and onboarding state#

From an elevated PowerShell session on the device:

PowerShell
Get-Service -Name Sense, DiagTrack | Select-Object Name, Status, StartType
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows Advanced Threat Protection\Status' |
    Select-Object OnboardingState
  • Sense should be Running and OnboardingState should be 1. If the value is missing or 0, the device isn't onboarded: check the EDR policy assignment and make sure no offboarding policy targets it.
  • DiagTrack is the Windows diagnostic data service. Microsoft's guidance for No sensor data is to confirm it starts automatically and is running; sc qc diagtrack shows the start type.

Then open Applications and Services Logs › Microsoft › Windows › SENSE › Operational. Event IDs 5 (couldn't connect to the server) and 15 (couldn't start the command channel) confirm a connectivity problem.

3. Check the proxy the sensor actually uses#

The sensor communicates through WinHTTP in the system context, independently of the user's browser proxy. See what WinHTTP is configured with:

Command Prompt
netsh winhttp show proxy

"Direct access" is only right if devices reach the internet without a proxy or your proxy is discovered automatically. Then compare your proxy and firewall allow lists with the connectivity model the device was onboarded with:

  • Streamlined connectivity consolidates the core services under *.endpoint.security.microsoft.com, plus supporting endpoints such as certificate revocation and Windows Update. Devices only use it after onboarding with a streamlined onboarding package.
  • Standard connectivity uses the longer, region-specific URL list.

Microsoft is explicit that these service connections use certificate pinning, so TLS inspection isn't supported, and that they're made by the device rather than a user, so a proxy that demands user authentication breaks them.

4. Run the MDE Client Analyzer#

Download the analyzer from the Microsoft Learn page in the references, extract MDEClientAnalyzer.zip, and run it from an elevated Command Prompt (adjust the path to wherever you extracted it):

Command Prompt
C:\Tools\MDEClientAnalyzer\MDEClientAnalyzer.cmd

It produces MDEClientAnalyzerResult.zip; open MDEClientAnalyzer.htm inside it for the findings. The connectivity results test each service URL through several methods (default proxy, WPAD, proxy disabled, named proxy). A (200) on any method means that route works; failures across the board give you the exact URLs to take to the network team.

Tip: the analyzer uses PsExec to run its cloud checks as Local System, so the ASR rule Block process creations originating from PSExec and WMI commands can block it. Add a temporary exclusion or switch that rule to Audit while you test. With Plan 2 you can also run the analyzer remotely through live response.

5. Make sure Defender Antivirus isn't disabled by policy#

On devices running third-party antivirus, the sensor still depends on Defender Antivirus components such as its early-launch antimalware (ELAM) driver. Look under HKLM\SOFTWARE\Policies\Microsoft\Windows Defender for leftover policies that disable Defender, and never change the start type of the Defender or Sense services; Microsoft treats that as unsupported.

Verify the fix#

Health states aren't real time, so give the device a while online after the fix. Then re-check Assets › Devices: the sensor health state should return to Active, and new events should appear on the device's Timeline tab. For full confidence, run Microsoft's detection test from the onboarding documentation and confirm an alert shows up for the device.

Prevent it next time#

  • Filter the device inventory on Sensor health state regularly, and use the device health report under Reports › Endpoints for a fleet view.
  • Offboard devices before retiring them, and expect a new record every time a device is reimaged or renamed.
  • Keep Defender for Endpoint destinations out of TLS inspection and user-authenticated proxy rules.
  • Next time you revisit onboarding, consider streamlined connectivity; a shorter allow list is easier to keep right.

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.

OE
Written by

Omer Eltayeb

Independent Microsoft Intune consultant in Cairo, Egypt, 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, Microsoft Entra ID, Microsoft Defender and Exchange Online 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)