Skip to main content

Nerdio is Microsoft’s 2026 Americas ISV Partner of the Year Get the story

Blog

How to automate Intune compliance policies at enterprise scale

Set up Intune compliance policies that evaluate laptops, Cloud PCs, and AVD session hosts, then enforce results with Conditional Access.

Microsoft Intune compliance policies check every enrolled device against your security rules, and Conditional Access blocks the ones that fail. The defaults rarely fit an enterprise estate. A device with no policy reports compliant, a Windows 365 Cloud PC fails any policy that requires BitLocker, and an Azure Virtual Desktop session host doesn't support user-targeted compliance at all.

This guide is for endpoint platform owners and governance, risk, and compliance (GRC) leads who automate compliance across physical devices and Windows Cloud, which encompasses both Azure Virtual Desktop and Windows 365.

What are Intune compliance policies?

An Intune compliance policy is a set of rules a device must meet, such as BitLocker turned on, a minimum OS build, or Defender running. Microsoft's compliance policy overview defines them as "sets of rules and conditions that you use to evaluate the configuration of your managed devices." Intune checks each device against those rules at check-in and reports a status. The policy measures the device without changing it.

Because enrollment runs through modern mobile device management (MDM), the same evaluation covers a laptop in a branch office and a Cloud PC in an Azure region. That's why Intune sits at the center of unified endpoint management.

How do compliance policies differ from configuration profiles and security baselines?

Configuration profiles and security baselines change a device's settings. Compliance policies only check whether the device meets your rules and report the result, as the table shows.

Policy type

What it does

Example

Configuration profile

Pushes settings to the device

Turns on BitLocker

Security baseline

Applies a Microsoft-built bundle of recommended security settings

Applies Microsoft's Windows security baseline

Compliance policy

Checks the result and sends a compliant or noncompliant signal to Microsoft Entra ID

Marks a device noncompliant if BitLocker is off

Microsoft's Zero Trust device guidance addresses how its baselines relate to the Center for Internet Security (CIS) and the National Institute of Standards and Technology (NIST). It states that the baselines "aren't CIS or NIST compliant but closely mirror their recommendations."

Which setting wins when policies conflict?

Compliance policies win over configuration profiles, and the strictest setting wins when two compliance policies overlap. Microsoft's device profile troubleshooting guide states that "Compliance policy settings always have precedence over configuration profile settings." Between two compliance policies, "the most restrictive compliance policy setting applies."

When two configuration profiles conflict, Intune flags the conflict and an admin has to resolve it.

How does Intune evaluate compliance automatically?

Intune evaluates each device every time it checks in, assigns a compliance status, and passes that status to Entra ID, where Conditional Access uses it to allow or block access.

How often do devices check in?

Enrolled devices check in with Intune "about every 8 hours," according to Microsoft's device profile troubleshooting guide. Newly enrolled devices check in more often. A new Windows device checks in every 3 minutes for the first 15 minutes, then every 15 minutes for 2 hours, before settling into the 8-hour cycle.

Windows devices can also ask for a fresh evaluation as soon as a security setting changes. With client-driven compliance evaluation (in preview since September 2026), a device that turns off its firewall or BitLocker asks Intune to recheck it before the next scheduled check-in.

What does each compliance status mean?

Each evaluation gives the device one of the five statuses defined in Microsoft's compliance monitoring guide. A device in its grace period hasn't been marked Not compliant yet, which means Conditional Access doesn't block it.

Status

Meaning

Compliant

Every assigned setting passed

In grace period

A setting failed, but the grace period hasn't expired

Not compliant

One or more settings failed and no grace period remains

Not evaluated

The device is newly enrolled, has no policy, or hasn't checked in since a policy changed

Error

A setting returned an error. Intune holds the device's last status for up to seven days

When a device has more than one policy, the most severe status wins. Microsoft's compliance policy creation guide ranks them from lowest to highest as Unknown, Not applicable, Compliant, In grace period, Not compliant, and Error.

Once the failing setting is fixed, the next check-in updates the status. A device can take up to 24 hours to appear in a policy's status report, even when it's online.

How to set up Intune compliance policies that run on their own

Five steps take a tenant from default settings to automatic enforcement. According to Microsoft's compliance policy creation guide, you need an Intune subscription to create compliance policies. Conditional Access, which does the enforcing, also needs Entra ID P1 or P2.

Step 1: Set tenant-wide defaults

Start with two tenant-wide settings that apply to every device, including devices with no policy assigned. You'll find both under Endpoint security > Device compliance > Compliance policy settings.

Mark devices with no compliance policy assigned as defaults to Compliant. A device nobody targeted with a policy reports green. Microsoft's compliance policy overview recommends switching this to Not compliant if you use Conditional Access. Otherwise, an untargeted device passes the compliant-device check.

Compliance status validity period (days) defaults to 30 and accepts values from 1 to 120. A device that doesn't report within that window is treated as noncompliant. Don't confuse it with a grace period. The validity period covers devices that stop reporting, while a grace period covers devices that report a failure.

Set the no-policy default to Not compliant and keep a validity window that matches your risk tolerance. Silent and untargeted devices then fail the compliance check, and Conditional Access can act on that result.

Step 2: Create the policy and choose platform settings

In the Microsoft Intune admin center, go to Devices > Compliance > Create policy, choose the platform, and name the policy. Pick Windows 10 and later for physical Windows devices, Cloud PCs, and session hosts. The Windows settings fall into Device health, Device properties, Configuration Manager compliance, System security, and Microsoft Defender for Endpoint.

Each platform needs its own policy. These are the settings most likely to trip up a multi-platform rollout.

Platform

Settings to plan for

Windows 10 and later

BitLocker, Secure Boot, code integrity, minimum and maximum OS, password, Defender, and Defender for Endpoint risk. BitLocker status is measured at boot.

macOS

Standard settings plus custom compliance (added in July 2026)

iOS/iPadOS

Block jailbroken devices

Android Enterprise

Block rooted devices

Linux

Ubuntu Desktop and Red Hat Enterprise Linux (RHEL) only. Assign to device groups only.

Windows 10 reached end of support on October 14, 2025. Consider setting the minimum OS version to a Windows 11 build. Some device health settings behave differently on virtual machines (VMs).

Step 3: Add actions for noncompliance and a grace period

Actions for noncompliance decide what happens when a device fails. Delaying the first action gives users a grace period to fix the problem before they lose access. Microsoft's noncompliance actions guide documents five actions:

  • Mark device noncompliant is the default, set to zero days. Delay it to create a grace period, during which the device reports In grace period.
  • Send email to end user uses a notification template you create first. Expect delivery within 6 hours.
  • Remotely lock the noncompliant device works on Android, iOS/iPadOS, and macOS, not Windows.
  • Send push notification to end user works on Android and iOS/iPadOS only.
  • Add device to retire list stages the device for retirement. An admin still has to confirm the retirement.

Schedules accept 0 to 365 days, including quarter-day steps (0.25 equals 6 hours). Conditional Access runs separately from these actions. A device in its grace period keeps access, and Conditional Access blocks it once its status changes to Not compliant.

Step 4: Assign policies with dynamic groups

Assign each policy to a group, and use dynamic groups so new devices pick up the right policy with no manual work. Use device groups for session hosts, kiosks, and shared devices. Use user groups when the policy should follow the person across devices, and add assignment filters to include or exclude device types. Apply scope tags if you delegate administration by region or business unit.

Dynamic groups in Entra ID add members automatically based on rules. A rule that gathers every Windows 365 device into one group means a newly provisioned Cloud PC picks up the group's compliance policy once enrollment and group membership finish processing. Windows 365 provisioning policies and Azure Virtual Desktop host pool configurations can enroll new machines in Intune automatically, meaning no admin has to enroll each device by hand.

Before a broad rollout, sync a pilot device and check the result. In the admin center, open Devices > All devices, select the device, and choose Sync. Results appear in Intune reporting under Devices > Compliance > Monitor. The Noncompliant devices and settings report lists one row per device for each failing setting.

Step 5: Enforce results with Conditional Access

Conditional Access is what blocks noncompliant devices. Without it, a compliance policy only reports a status. Intune sends each device's status to Entra ID, and the Conditional Access grant control "Require device to be marked as compliant" uses it to allow or block sign-ins. The control supports Windows 10 and later, iOS, Android, macOS, and Ubuntu Linux devices that are registered in Entra ID and enrolled in Intune.

A few mechanics matter at scale:

  • Only Intune, or an approved MDM app on Windows, can update a device's isCompliant property. Admins and scripts can't set it directly.
  • The compliant-device grant doesn't block enrollment. New devices can still onboard.
  • Device filters support isCompliant and trustType, allowing you to scope a policy to hybrid-joined devices or carve out a pilot group.
  • Start new policies in report-only mode, confirm who would be blocked, then switch to On.

Pairing compliance with Conditional Access is how device health becomes a Zero Trust control. The NIST Zero Trust Architecture standard (SP 800-207) states that "no asset is inherently trusted" and that the enterprise "monitors and measures the integrity and security posture of all owned and associated assets."

The compliance check followed by a Conditional Access decision applies that principle to every sign-in.

Automatic blocking also covers the gap between a patch release and a patched fleet. Verizon's 2026 Data Breach Investigations Report found that organizations had fully remediated only 26% of Cybersecurity and Infrastructure Security Agency (CISA) Known Exploited Vulnerabilities, down from 38% the year before.

A minimum OS version rule paired with a Conditional Access block keeps out-of-date devices away from corporate apps without anyone opening a ticket.

How to check third-party apps with custom compliance

Custom compliance lets you check things Intune's built-in settings can't, such as whether third-party apps are up to date. It runs on Windows (not Home editions), macOS, and supported Linux distributions. Windows scripts use PowerShell, and macOS and Linux use shell scripts.

Each policy carries one discovery script. The script reports values from the device that Intune compares against rules in a JSON file you upload alongside it. The JSON supports operators such as IsEquals and GreaterEquals and data types such as String and Version, up to 100 rules. Keep discovery output under 2,048 characters. Longer output can be truncated, which breaks the JSON and returns error 65009.

Third-party software is the main use case. The built-in Windows settings cover device health, OS version, system security, and Defender, but none of them check whether Google Chrome or Adobe Acrobat is current. A discovery script can read the installed version and compare it against a minimum Version value, which turns an outdated app into a compliance failure.

Custom compliance detects the problem but doesn't fix it. A remediation script deployed through Intune script deployment, or an application update, handles the fix. Nerdio Manager for Enterprise can automate that update step across Windows devices.

How do Intune compliance policies work on Windows 365 and Azure Virtual Desktop?

Compliance policies work on both Windows 365 and Azure Virtual Desktop, but each needs a policy built for virtual hardware. A copied laptop policy marks healthy virtual desktops noncompliant because some laptop settings can't be measured on a VM. Many enterprises run both platforms and need a policy for each.

Windows 365 Cloud PCs

Leave BitLocker out of any compliance policy that targets Cloud PCs. Windows 365 Cloud PCs don't support BitLocker, and Microsoft's Windows 365 security guidelines recommend excluding the setting. A policy that requires BitLocker leaves every Cloud PC permanently noncompliant.

Secure Boot checks can stay in the policy. Microsoft states that all new Cloud PCs have Secure Boot and a virtual Trusted Platform Module (TPM) turned on by default. Microsoft's Windows 365 security guidelines also recommend pairing Cloud PC compliance with Conditional Access.

Azure Virtual Desktop session hosts

Session hosts need a compliance policy assigned to the device group that contains them, using only the settings Windows multi-session supports. Azure Virtual Desktop multi-session hosts don't support user-targeted compliance, according to Microsoft's multi-session guidance. Microsoft supports these settings on multi-session hosts:

  • Minimum and maximum OS version, and valid OS builds
  • Password settings
  • Defender Antimalware, including security intelligence and minimum version
  • Firewall, antivirus, antispyware, and real-time protection
  • Defender for Endpoint risk score

Every other setting, including BitLocker, Secure Boot, TPM, and device health attestation, reports Not applicable.

Conditional Access for Azure Virtual Desktop

For Azure Virtual Desktop, Conditional Access can check two different devices. A policy at connection time checks the device the user connects from, and a policy inside the session checks the session host.

Microsoft recommends scoping connection-time compliance to the client devices users connect from.

Where does native Intune automation need help at scale?

Native Intune automates evaluation and enforcement, but four jobs around them still take admin time, and that time grows with device count. A management platform such as Nerdio Manager automates these jobs on top of Intune.

  • Policy backup and restore: Native Intune doesn't include a backup or restore for deleted policies. In a 5,000-device tenant, a bad edit on a Friday afternoon means rebuilding the policy from documentation while devices fail evaluation.
  • Third-party app updates: Native Intune app delivery can take up to 3 hours because the client doesn't check for new apps continuously. A device that a custom compliance check flags for an outdated app can stay noncompliant for that whole window.
  • Audit evidence retention: Intune keeps audit events "for up to two years." Keeping them longer means routing logs through Azure Monitor to an Azure Storage account or Log Analytics workspace.
  • Policy conflicts across consoles: In hybrid estates, on-premises Group Policy Objects (GPOs) still apply to hybrid-joined devices alongside Intune settings. Finding out why one setting isn't landing means comparing the Intune admin center, Entra ID, the Azure Portal, and Group Policy results on the device.

These four jobs are where admin hours go once the compliance loop itself is running.

How Nerdio Manager automates Intune compliance at scale

Nerdio Manager deploys into your Azure environment and manages Windows 365, Intune, and Azure Virtual Desktop from one console. Intune still evaluates compliance and Entra ID still decides access, while Nerdio Manager automates the work around them.

Nerdio Manager working as an automation layer above Microsoft Intune and existing Microsoft infrastructure

Your team manages Intune compliance policies, configuration policies, and baselines in Nerdio Manager without opening the Intune portal. Nerdio Manager sends those changes to Intune through Microsoft's application programming interfaces (APIs), and Intune applies them to every enrolled endpoint, physical or virtual.

Each of the four missed jobs from the previous section maps to a specific Nerdio Manager capability:

  • Policy backup and restore: Nerdio Manager backs up Intune policies automatically, both on a schedule and before changes are applied. You can restore an earlier version from the backup history, and backups stay available even when a policy is deleted outside Nerdio Manager.
  • App updates in minutes: Unified application management pulls WinGet, MSIX App Attach, Microsoft Store, Intune, and custom installers into one catalog. It deploys apps to Windows 365 Cloud PCs in about 30 seconds and keeps them updated, so the Chrome version your compliance script checks stays current. Scripted Actions add Windows patching tied to Patch Tuesday. Howell Technology, a managed service provider (MSP), reported monthly Azure Virtual Desktop security patching dropping from 8 hours to 2 hours per customer after adopting Nerdio Manager.
  • Reporting for leadership and auditors: Executive dashboards track admin time saved and automation impact. Agentless monitoring shows device health across physical and virtual endpoints, and role-based access control with audit logging supports delegated administration.
  • One console for every device type: Nerdio Manager shows the compliance policies for Cloud PCs and session hosts side by side. It also brings license health and Nerdio Advisor right-sizing recommendations to Cloud PCs.

Syneos Health, a global clinical research organization, reported 70% faster changes across its Azure Virtual Desktop environment with Nerdio Manager.

TechTarget's Enterprise Strategy Group found that the IT admin hours needed to manage Azure Virtual Desktop dropped by about 50% in its 2024 economic validation. One customer in that study said, "We work differently now that we have Nerdio. The relationship between IT and business is more of a partnership because we now have the time to better understand their needs."

Four checks to run on your Intune compliance setup

Run these checks to see whether your tenant is ready for automatic enforcement:

  1. Open Endpoint security > Device compliance > Compliance policy settings. Confirm that devices with no policy are marked Not compliant and that the validity period matches your risk tolerance.
  2. Pull the Noncompliant devices and settings report. Count the BitLocker, Secure Boot, and attestation failures on Cloud PCs and session hosts. Those rows often point to a policy built for laptops.
  3. Confirm at least one Conditional Access policy uses the compliant-device grant and is set to On, not report-only.
  4. Write down how you'd restore a compliance policy an admin deleted this morning. If the answer is screenshots, fix that first.

To see how Nerdio Manager handles policy backup, app updates, and compliance reporting on top of your Intune tenant, get a demo or try it free in your Azure tenant.

Frequently asked questions about Intune compliance policies

Ready to get started?