Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community

How to notify if any of the MDE sensor going to "INACTIVE" state

Microsoft

How can get notification if any of the Microsoft Defender Endpoint (MDATP aka MDE) sensors going to "INACTIVE" state. This will be an proactive approaches that will help to avoid assets flagging related to S360 KPI 

3 Replies
Endpoint reporting to MDE will go inactive state if endpoint failed to connect MDE tenant for 7 consecutive days. You can generate device inventory report or use KQL to get the Lastdeviceupdate date and time.
Would you have any example KQL scripts for this?

@DevRin 

I believe something like this should work if you set it in a custom detection rule that runs on a 24h interval.

 

It will only show devices that last connected between 00:00 and 23:59 during the date 7 days ago.

 

 

let threshold = 7d;
DeviceInfo
| summarize arg_max(Timestamp,*) by DeviceName
| where Timestamp between (startofday(ago(threshold))..endofday(ago(threshold)))