BIG thanks to RaviSoni for all the hard work on the detail in this query.
You can use the query below to get more context on the health status of Windows machines via Endpoint Live Discover. e.g. which area is causing a bad health (Service or Threat) and if service, which services are problematic.
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--Sophos Endpoint Health Status Check EDR Query
SELECT
(SELECT
CASE
WHEN data = 1 THEN 'GOOD ✅'
WHEN data = 3 THEN 'BAD ❌ - Isolated'
END Satus
FROM
registry
WHERE key = "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Sophos\Health\Status\" AND name = 'admin') AS IsolateStatus,
(SELECT
CASE
WHEN data = 1 THEN 'GOOD ✅'
WHEN data = 2 THEN 'SUSPICIOUS ⚠️️'
WHEN data = 3 THEN 'BAD ❌'
END Satus
FROM
registry
WHERE key = "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Sophos\Health\Status\" AND name = 'service') AS ServiceStatus,