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.

  1. Find the ID and Version of your Defender baseline policy in Enforce
    Overview
  2. 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"


    Graphical user interface, text, application Description automatically generated
  1. Create a Scheduled Action to Onboard devices.
    Graphical user interface, application Description automatically generated

    Overview
  2. It may take several minutes for devices to show in the Defender console.
    Graphical user interface, application Description automatically generated

    Graphical user interface, application Description automatically generated

    Graphical user interface, application Description automatically generated
  3. Create a Scheduled Action to remove DEFENDER_ROLLOUT tag from devices that have been Onboarded, ensuring they are removed from the automation.
    Graphical user interface, application, Teams Description automatically generated

    Graphical user interface, text, application, email Description automatically generated

    Graphical user interface, application, Teams Description automatically generated

    Graphical user interface, application Description automatically generated

    Graphical user interface, application Description automatically generated