Device Posture - Defender and Defender ATP

Hi Community,

currently we are looking for a possibility to check if the Microsoft Defender/Defender ATP is active and running.
Any Idea how to achieve that?

With MacOS we are using the process check - but on Windows the path is different with different versions.

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2102.3-0\MsMpEng.exe