Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune

Key Takeaways

  • Detect local changes to supported Windows compliance settings.
  • Trigger compliance reevaluation when monitored settings change.
  • Identify Microsoft Defender real-time protection changes that affect compliance.
  • Use updated compliance status to support Conditional Access enforcement.

In this post, we are discussing about Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune. Microsoft Intune helps administrators monitor device compliance and ensure Windows devices meet the required security configurations. When a device’s security settings change, its compliance status may also change, which makes timely detection important for administrators to maintain the security of managed devices. Intune helps administrators ensure Windows devices meet the required security and compliance settings through compliance policies. These policies help monitor device configurations and identify whether devices meet the organization’s security requirements.

Table of Contents

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune

During the Microsoft Ignite session, Microsoft demonstrated how Windows devices can detect changes to supported compliance settings and trigger a compliance reevaluation. The demonstration uses Microsoft Defender Antivirus real-time protection to show how a local setting change can trigger policy drift detection.Once the change is detected, the device reports the updated information to the Intune service, which reevaluates the compliance state and marks the device as non-compliant. This helps administrators identify compliance changes sooner and use the updated status with Conditional Access to control access to organizational resources.

What’s New

Microsoft Intune supports detecting changes to supported Windows compliance settings and triggering compliance reevaluation when those changes occur. When Microsoft Defender protection is disabled locally, Windows detects the setting change and initiates a compliance evaluation, reporting the updated state to the Intune service. Intune can then update the device’s compliance status to non-compliant, helping administrators identify security configuration changes sooner without relying solely on scheduled compliance checks

Configuration to Detect Microsoft Defender Policy Drift in Intune

To begin, sign in to the Microsoft Intune admin center. From the left navigation pane, navigate to Devices and select Windows to access the managed Windows devices in your environment. This page provides access to the Windows device inventory managed through Intune. Select the Windows device you want to monitor for compliance changes.

Patch My PC
  • Device> Windows
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.1
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.1

Verify the Initial Device Compliance Status

On the selected Windows device overview page, you can review the device’s details and its current compliance status under the Essentials section. In the demonstration, the device is initially displayed as Compliant, confirming that it meets the assigned compliance requirements before any local setting changes are made. The overview page also displays information such as the device name, model, manufacturer, last check-in time, management details, and scope tags. This initial compliance state serves as the baseline for demonstrating how Intune detects a change in the device’s security configuration.

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.2 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.2 Creds to MS

Open Windows Security on the Device

On the Windows device, open the Windows Security application from the taskbar. The presenter selects the Windows Security icon to access the device’s security settings and review the Microsoft Defender Antivirus protection configuration. Windows Security provides access to different protection areas, including virus and threat protection. In this demonstration, the presenter uses these settings to make a local change to Microsoft Defender real-time protection and observe how Intune detects the resulting compliance drift.

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.3 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.3 Creds to MS

Microsoft Defender Real-Time Protection Settings

Under Virus & threat protection settings in Windows Security, you can review Microsoft Defender Antivirus protection settings. In the demonstration, Real-time protection is enabled initially, helping locate and stop malware from installing or running on the device. Other settings, such as Dev Drive protection and Cloud-delivered protection, are also visible on this page.

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.4 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.4 Creds to MS

Turn Off Real-Time Protection

Next, the presenter turns off Real-time protection in the Windows Security settings. After disabling the setting, Windows displays a warning that real-time protection is off, leaving the device vulnerable. This change is used to shows how a local security configuration change can trigger compliance drift detection. Once real-time protection is disabled, the device no longer meets the required security setting demonstrated in the compliance scenario. The change provides the Windows to detect the updated setting and initiate the compliance evaluation process rather than waiting for the next scheduled check.

Windows SecurityInfo
Real-time protectionTurn Off- Real-time protection is off, leaving your device vulnerable.
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Table.1
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.5 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.5 Creds to MS

After turning off real-time protection, click the Configuration Manager Trace Log Tool (CMTrace) icon from the taskbar to open the log viewer. This tool is used in the demonstration to review the Intune Management Extension log and check how the device detects and records the change to the Microsoft Defender real-time protection setting.

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.6 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.6 Creds to MS

The log shows the events received from Windows Security and Microsoft Defender, including the change detected for the monitored security settings. The highlighted log entry shows the compliance event processor confirming drift for settings, including RtpEnabled and AntivirusRequired

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.7 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.7 Creds to MS

Refresh the Device Overview in Intune

After reviewing the log, return to the Microsoft Intune admin center and refresh the selected Windows device overview page. The presenter refreshes the portal to check whether the Intune service has received the updated compliance information reported by the device. Refreshing the device page allows administrators to view the latest reported device status in the Intune admin center. In the demonstration, the device’s last check-in information is also updated, showing that the device has reported the change to the service.

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.8 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.8 Creds to MS

Verify the Updated Compliance Status

After refreshing the Intune admin center, the device is now displayed as Non-compliant in the device overview. This confirms that the local change to Microsoft Defender real-time protection was detected and reported to Intune, resulting in an updated compliance status. This shows how Windows can detect compliance drift for supported security settings and trigger a compliance evaluation sooner.

Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.9 Creds to MS
Detect Microsoft Defender Policy Drift and Update Compliance Status using Intune -Fig.9 Creds to MS

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, join the WhatsApp Community  and the Whatsapp channel to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Anoop C Nair  is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. He is Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11 years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His focus is on Device Management technologies such as Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Leave a Comment