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.
Nerdio is Microsoft’s 2026 Americas ISV Partner of the Year Get the story
Blog
Set up Intune compliance policies that evaluate laptops, Cloud PCs, and AVD session hosts, then enforce results with Conditional Access.
Table of Contents
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.
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.
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."
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.
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.
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.
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.
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.
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.
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 |
|
BitLocker, Secure Boot, code integrity, minimum and maximum OS, password, Defender, and Defender for Endpoint risk. BitLocker status is measured at boot. |
|
|
Standard settings plus custom compliance (added in July 2026) |
|
|
Block jailbroken devices |
|
|
Block rooted devices |
|
|
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).
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:
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.
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.
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:
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.
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.
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.
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.
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:
Every other setting, including BitLocker, Secure Boot, TPM, and device health attestation, reports Not applicable.
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.
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.
These four jobs are where admin hours go once the compliance loop itself is running.
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.

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:
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."
Run these checks to see whether your tenant is ready for automatic enforcement:
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.
The default compliance policy is the tenant-wide setting "Mark devices with no compliance policy assigned as," which defaults to Compliant. Microsoft recommends changing it to Not compliant when you use Conditional Access. The companion setting, compliance status validity period, defaults to 30 days.
Intune checks compliance at each device check-in, which Microsoft estimates at about every 8 hours once enrollment settles. Newly enrolled devices check in more often, and custom compliance scripts run every 8 hours. Windows devices can also request re-evaluation when their security state changes.
A noncompliant device triggers the actions in its policy on their schedule, such as an email to the user or a spot on the retire list. If a Conditional Access policy uses the compliant-device grant, the device loses access to the targeted apps once any grace period expires. Access returns when a later check-in reports it compliant.
Assign compliance policies to device groups for shared devices, kiosks, and Azure Virtual Desktop session hosts, which don't support user-targeted compliance. Assign to user groups when the policy should follow a person across their devices, and use assignment filters to include or exclude device types.
You need an Intune subscription to create and evaluate compliance policies. Enforcing them through Conditional Access also requires Entra ID P1 or P2, which Microsoft 365 E3, E5, and E7 include.
Learn more about Nerdio Manager