Forum Discussion
KQL Query Help - Identify all devices without Sysmon running
rahuljindal Thanks for your response and suggestion. Modifying the query as suggested below shows. Any suggestions on which kql commands I can use to make the comparisons against all enrolled devices? I am quite new to KQL so learning as much as I can.
DeviceProcessEvents
| where FileName == "Sysmon.exe" or FileName == "Sysmon64.exe"
| project DeviceName, FileName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessFolderPath, InitiatingProcessCommandLine
- William2450Mar 30, 2024Copper Contributor
rahuljindal Thanks for you response, I should have mentioned earlier that I am trying to set this up so it generates an alert anytime a device without the Sysmon service is observed.
The command gives a result of devices with the Sysmon service. Any suggestions or ideas on how to do the compression with all enrolled devices using KQL is welcome.