Automate Defender Deployment and Onboarding based on Enforce Defender Policy Status
To ensure effective and safe onboarding of Defender EDR, it is best that settings for the Antivirus components are in place. Using Enforce, we can set and manage those settings, and use that as a targeting criteria for enabling Defender EDR. This guide uses a Custom Tag (DEFENDER_ROLLOUT) and the successful enforcement of our desired Defender settings as the trigger for the Defender onboarding automation.
-
Find the ID and Version of your Defender baseline policy in Enforce
-
Ask the following question, replacing these values in Machine Policy Status with those you copied in Step 1:
Get Online from all machines with Enforce – Machine Policy Status [7:1,]:Status contains "Applied"
-
Create a Scheduled Action to Onboard devices.
-
It may take several minutes for devices to show in the Defender console.
-
Create a Scheduled Action to remove DEFENDER_ROLLOUT tag from devices that have been Onboarded, ensuring they are removed from the automation.