DefenderTroubleshooting

Defender for Endpoint client analyzer: run it, read the results and fix connectivity

Run the Defender for Endpoint client analyzer locally or through live response, read the HTML report and URL tests, fix proxy, TLS and sensor findings, and know what to send to support.

When a device shows an unhealthy sensor state in the Microsoft Defender portal, or onboarding seems to work but nothing arrives, the Defender for Endpoint client analyzer (MDECA) is the fastest way to see what the sensor sees. It checks the sensor's processes and configuration, tests every service URL the way the sensor would, and packages the logs Microsoft support asks for. In this post I'll show how to run it, how to read the report and the URL tests, and how to fix the usual findings.

Errors this guide fixes

  • Impaired CommunicationsMicrosoft Defender portal (sensor health)
  • No Sensor DataMicrosoft Defender portal (sensor health)
How this guide is organized: 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 (6 steps: Run the analyzer; Or collect it remotely with live response; Read the HTML report; Fix the connectivity findings; macOS and Linux; When to collect for support). 4. Verify the fix. 5. Prevent it next time. Toolbox: sense.evtx, CertValidate.log, mdatp, sc.exe, TelemetryProxyServer.1Symptoms2Why it happens3How to fix it4Verify the fix5Prevent it nexttime1Run theanalyzer2Or collect itremotely with…3Read the HTMLreport4Fix theconnectivity f…5macOS andLinux6When tocollect for su…TOOLBOXsense.evtxCertValidate.logmdatpsc.exeTelemetryProxyServerHow this guide is organized: 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 (6 steps: Run the analyzer; Or collect it remotely with live response; Read the HTML report; Fix the connectivity findings; macOS and Linux; When to collect for support). 4. Verify the fix. 5. Prevent it next time. Toolbox: sense.evtx, CertValidate.log, mdatp, sc.exe, TelemetryProxyServer.1Symptoms2Why it happens3How to fix it1Run the analyzer2Or collect it remotely with live response3Read the HTML report4Fix the connectivity findings5macOS and Linux6When to collect for support4Verify the fix5Prevent it next timeTOOLBOXsense.evtxCertValidate.logmdatpsc.exeTelemetryProxyServer
At a glance: how this guide is organized · 6 fix steps · 5 key tools

Symptoms#

  • The device inventory shows a sensor health state of Impaired Communications, No Sensor Data or Inactive for a device you know is online.
  • Onboarding reports success locally, but the device never appears in the portal, or alerts and timeline events arrive late.
  • The analyzer's Check Results Summary shows errors or warnings, or URL tests in its text output don't return (200):
Text
Testing URL : https://xxx.microsoft.com/xxx
1 - Default proxy: Succeeded (200)
2 - Proxy auto discovery (WPAD): Succeeded (200)
3 - Proxy disabled: Succeeded (200)
4 - Named proxy: Doesn't exist
5 - Command line proxy: Doesn't exist

That block is healthy: one (200) on any method means the sensor can reach that URL that way. A failure shows an HTTP error instead.

Why it happens#

Reading the client analyzer results to find the causeDoes the PsExec ASR rule block the analyzer? if Yes: Exclude it, audit the rule or use live response (Live response doesn't need PsExec); if No: Does every tested URL have at least one (200)? if Yes: Fix the sensor findings in the report (An organization ID finding means a wrong or expired package); if No: How does the failing URL test fail? if Every method: Allow the URL on the proxy and firewall (The required list depends on the region in the onboarding package); if Only direct works: Fix the proxy rules (Traffic can go direct, but the proxy blocks it); if Auth or TLS error: Exempt the URLs from auth and TLS inspection (The system account can't answer an auth prompt)Does the PsExec ASR rule blockthe analyzer?FIXExclude it, auditthe rule or uselive responseLive responsedoesn't need PsExecYesDoes every tested URL have atleast one (200)?FIXFix the sensorfindings in thereportAn organization IDfinding means awrong or expiredpackageYesHow does the failing URL testfail?FIXAllow the URL onthe proxy andfirewallThe required listdepends on theregion in theonboarding packageEvery methodFIXFix the proxyrulesTraffic can go direct,but the proxy blocksitOnly direct worksFIXExempt the URLsfrom auth andTLS inspectionThe system accountcan't answer an authpromptAuth or TLS errorNoNoReading the client analyzer results to find the causeDoes the PsExec ASR rule block the analyzer? if Yes: Exclude it, audit the rule or use live response (Live response doesn't need PsExec); if No: Does every tested URL have at least one (200)? if Yes: Fix the sensor findings in the report (An organization ID finding means a wrong or expired package); if No: How does the failing URL test fail? if Every method: Allow the URL on the proxy and firewall (The required list depends on the region in the onboarding package); if Only direct works: Fix the proxy rules (Traffic can go direct, but the proxy blocks it); if Auth or TLS error: Exempt the URLs from auth and TLS inspection (The system account can't answer an auth prompt)Does the PsExec ASR rule block the analyzer?YesFIXExclude it, audit the rule or use live responseLive response doesn't need PsExecNoDoes every tested URL have at least one(200)?YesFIXFix the sensor findings in the reportAn organization ID finding means a wrong orexpired packageNoHow does the failing URL test fail?Every methodFIXAllow the URL on the proxy andfirewallThe required list depends on the region inthe onboarding packageOnly direct worksFIXFix the proxy rulesTraffic can go direct, but the proxy blocks itAuth or TLS errorFIXExempt the URLs from auth and TLSinspectionThe system account can't answer an authprompt
Figure 1 · Decision tree Reading the client analyzer results to find the cause. Run the analyzer, then answer the questions from the top with its HTML report and the Testing URL blocks in its text output.
  • The sensor doesn't use the user's proxy. The SENSE service runs as Local System, so it relies on the system (WinHTTP) proxy, WPAD or a static proxy in TelemetryProxyServer. A browser that works proves nothing. With TelemetryProxyServer set, the sensor falls back to a direct connection if it can't reach that proxy.
  • The proxy or firewall blocks service URLs, or demands authentication the system account can't provide.
  • TLS inspection or revocation checks fail. A proxy that re-signs traffic, or blocked certificate revocation lists, breaks the sensor's connections.
  • The sensor itself is unhealthy: SENSE or Defender Antivirus processes aren't running, or the device was onboarded with a package for another (or expired) organization ID.
  • The analyzer is blocked: it uses Sysinternals PsExec to run its cloud checks as Local System, and the ASR rule Block process creations originating from PSExec and WMI commands stops that.

How to fix it#

1. Run the analyzer#

Download the MDE Client Analyzer from the Microsoft Learn page in the references, extract MDEClientAnalyzer.zip, and run it from an elevated Command Prompt:

Command Prompt
C:\Tools\MDEClientAnalyzer\MDEClientAnalyzer.cmd
C:\Tools\MDEClientAnalyzer\MDEClientAnalyzer.cmd -o "C:\Tools\<onboarding script>.cmd"

On an onboarded device it tests with the device's own onboarding parameters. On a device that isn't onboarded yet it tests the US, UK and EU defaults, so for streamlined connectivity pass the onboarding script with -o (the second line) and it uses the region in that script. If the ASR rule blocks it, add a temporary exclusion for the analyzer, switch the rule to audit, or run it through live response, which doesn't need PsExec.

All the analyzer's scripts are Microsoft-signed. If any file was changed, it stops with a signature validation error and issuerInfo.txt explains which file failed; download a fresh copy.

2. Or collect it remotely with live response#

For a device you can't reach, collect the analyzer support logs through a live response session in the Defender portal, following Microsoft's live response steps for the analyzer, then download the result package. Live response in Defender for Endpoint covers sessions, the library and downloading files.

3. Read the HTML report#

Unpack MDEClientAnalyzerResult.zip and open MDEClientAnalyzer.htm:

  • Device Information identifies the device, so you know you're reading the right report.
  • Endpoint Security Details lists the sensor and Defender Antivirus processes; anything that should run but doesn't is shown in red.
  • Check Results Summary counts errors, warnings and informational findings, and Detailed Results lists them by severity with Microsoft's guidance for each.

Fix errors before warnings. A finding about the organization ID points to a wrong or expired onboarding package; the onboarding errors guide and the SENSE event ID reference help with the events in EventLogs\sense.evtx.

4. Fix the connectivity findings#

Find each Testing URL block in the text output (Microsoft's connectivity page calls the file MDEClientAnalyzerResult.txt; current packages also keep a verbose log in SystemInfoLogs\MDEClientAnalyzer.txt). Then compare with the proxy the sensor really uses:

Command Prompt
netsh winhttp show proxy
reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v TelemetryProxyServer
sc.exe query sense
  • Every method fails for a URL: allow that URL (or the streamlined domain set) on the proxy and firewall. The required list depends on the region in the onboarding package; see moving to streamlined connectivity.
  • Only "Proxy disabled" works: traffic can go direct, but your proxy blocks it. Fix the proxy rules, or configure WinHTTP or TelemetryProxyServer deliberately.
  • An authentication error: exempt the Defender URLs from proxy authentication, because the system account can't answer a user prompt.
  • TLS or revocation problems: check SystemInfoLogs\CertValidate.log (the certificate revocation check), SCHANNEL.txt and SSL_00010002.txt, then exclude the Defender URLs from TLS inspection.

5. macOS and Linux#

Microsoft publishes separate versions of the analyzer for macOS and Linux, linked from the overview page in the references; run them as described on those pages. On those platforms, mdatp health and mdatp connectivity test give a quick first answer, and mdatp diagnostic create builds a log package; see mdatp health errors on Linux.

6. When to collect for support#

If the report has no clear cause, or Microsoft support asks for traces, attach MDEClientAnalyzerResult.zip in the case's Attachments section; for files over 25 MB the engineer provides a secure workspace. The analyzer doesn't send anything automatically, but the package can contain device names, IP addresses and usernames, so handle it as sensitive. For performance, application compatibility or Endpoint DLP problems, support might ask you to rerun it with the extra collection options on Microsoft's advanced data collection page.

Verify the fix#

  • Rerun the analyzer: every tested URL has at least one (200), and Check Results Summary shows no errors.
  • sc.exe query sense shows RUNNING.
  • The device's sensor health returns to Active in the device inventory, and new timeline events arrive. Inactive and No sensor data explains each state.

Prevent it next time#

  • Run the analyzer with -o on a pilot device before proxy, firewall or TLS inspection changes, and before onboarding a new site.
  • Download a fresh copy of the analyzer for each investigation, because Microsoft updates its checks.
  • Plan an ASR exclusion process for the analyzer, so diagnostics don't wait for a policy change.

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

Intune Subject Matter Expert 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, 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)