M365 Admin Handbook — Chapter 7: Microsoft Intune Fundamentals (Windows Autopilot, Enrollment & Compliance Policies)

📚 Mastering Microsoft 365 & Endpoint Administration Chapter 7 of 14
View Full Book TOC →
📘 Chapter 7 Executive Brief — Microsoft Intune Fundamentals
  • Zero-Touch Provisioning: Replace golden images and MDT/SCCM task sequences with Windows Autopilot (Device Preparation & Hardware Hash enrollment) directly into Microsoft Entra Joined cloud-native endpoints.
  • Compliance = Conditional Access Gate: Intune Compliance Policies (BitLocker, Secure Boot, Defender AV, OS minimum version) feed real-time device health directly into Entra Conditional Access (Chapter 3)—blocking non-compliant laptops from M365 data.
  • Ignite 2026 Expansion: Microsoft Intune and Windows Autopatch now extend cloud-native management in preview to eligible Windows Server scenarios alongside Windows 11, macOS, iOS, and Android.

In Chapters 1 through 6, we built our tenant foundation, Entra ID lifecycle, Zero Trust identity plane, and Exchange Online messaging & security stack. Now we enter the second major pillar of modern Microsoft 365 administration: Endpoint Management with Microsoft Intune.

In Chapter 7, you will learn how to configure automatic MDM enrollment, deploy Windows Autopilot, enforce Device Compliance Policies, and automate Intune inventory and compliance audits using the Microsoft Graph PowerShell SDK (Microsoft.Graph.DeviceManagement).


1. Windows Autopilot & Intune Zero Trust Device Lifecycle

Zero-Touch Endpoint Lifecycle: Autopilot → Intune → Conditional Access 1. OEM / AUTOPILOT • Hardware Hash / Device Preparation Profile • User signs in at OOBE Entra Joined (Cloud-Native) 2. CONFIG & APPS • Settings Catalog Profiles • Silent BitLocker + WHfB • M365 Apps + Win32 Apps Standard User (No Admin) 3. COMPLIANCE CHECK • TPM 2.0 + Secure Boot • BitLocker Encrypted • Defender Risk ≤ Low Marked Compliant in Entra 4. ZERO TRUST ACCESS • CA004 Verifies State • Grants M365 & Copilot • Windows Autopatch Continuous Compliance Architecture Tip: Default to Cloud-Native Microsoft Entra Joined devices—only use Hybrid Entra Join if legacy on-prem Win32 dependencies require it.

2. Core Day-1 Intune Configuration Steps

Before enrolling your first 50 laptops, lock down these four foundational settings in the Microsoft Intune Admin Center (intune.microsoft.com):

  1. MDM Authority & Automatic Enrollment: In Devices → Enrollment → Automatic Enrollment, set MDM user scope to All (or your licensed Intune security group) and MAM user scope to None (unless explicitly deploying BYOD App Protection Policies).
  2. Enrollment Platform Restrictions: Block personally owned Windows devices (Personally owned = Block) so employees don't accidentally MDM-enroll home PCs—direct BYOD phones to Intune App Protection Policies (MAM) instead.
  3. Windows Autopilot Deployment Profile:

- Deployment mode: User-Driven (or Windows Autopilot Device Preparation for faster modern provisioning). - User account type: Standard (never Local Administrator—use Intune Endpoint Privilege Management (EPM) or Windows LAPS for elevation). - Hide privacy settings & change account options: Enabled.

  1. Compliance Policy Settings (Mark Devices Without Compliance Policy As): Set Tenant Administration → Compliance policy settings → Mark devices with no compliance policy assigned as to Not compliant so unmanaged loopholes cannot bypass Conditional Access.

3. Auditing Intune Managed Devices & Compliance Posture via Graph PowerShell

Use the Microsoft Graph PowerShell SDK (DeviceManagementManagedDevices.Read.All) to pull a live compliance, encryption, and stale-device audit across your fleet:

POWERSHELL
#Requires -Modules Microsoft.Graph.DeviceManagement
Connect-MgGraph -Scopes "DeviceManagementManagedDevices.Read.All" -NoWelcome

$devices = Get-MgDeviceManagementManagedDevice -All

# 1. Fleet Summary by OS and Compliance State
Write-Host "=== Intune Managed Device Compliance Summary ===" -ForegroundColor Cyan
$devices | Group-Object OperatingSystem, ComplianceState |
    Select-Object Name, Count |
    Sort-Object Count -Descending |
    Format-Table -AutoSize

# 2. Export Non-Compliant or Stale (>30 Days) Corporate Devices
$staleCutoff = (Get-Date).AddDays(-30)
$attention = $devices | Where-Object {
    $_.ComplianceState -ne 'compliant' -or $_.LastSyncDateTime -lt $staleCutoff
} | Select-Object DeviceName, UserPrincipalName, OperatingSystem, OsVersion,
                  ComplianceState, IsEncrypted, ManagedDeviceOwnerType, LastSyncDateTime

Write-Host "[!] Devices requiring attention (Non-Compliant or >30d Stale): $($attention.Count)" -ForegroundColor Yellow
$attention | Export-Csv -Path ".\Intune-Compliance-Stale-Audit.csv" -NoTypeInformation -Encoding UTF8

4. Collecting a Windows Autopilot Hardware Hash (For Existing Hardware)

For existing laptops not pre-registered by Dell, Lenovo, or HP via OEM Autopilot upload, capture the hardware hash directly into Intune:

POWERSHELL
# Run as Administrator on the target Windows 11 device
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned -Force
Install-Script -Name Get-WindowsAutopilotInfo -Force
Get-WindowsAutopilotInfo.ps1 -Online -GroupTag "Corp-Win11-Standard"

Chapter 7 Verification Checklist

Before advancing to Chapter 8 (Endpoint Security with Intune: Win32 Apps, Defender for Endpoint & Remediation Scripts), confirm:

  • [ ] Automatic MDM Enrollment is scoped to Intune-licensed users, and personal Windows MDM enrollment is blocked.
  • [ ] Windows Autopilot deploys Entra Joined devices with Standard User privileges (zero local admin rights).
  • [ ] Baseline Compliance Policies enforce BitLocker, Secure Boot, TPM 2.0, Defender AV, and minimum OS build.
  • [ ] "Mark devices with no compliance policy assigned" is set to Not compliant and paired with Conditional Access (CA004).

💬 Reader Comments & Feedback

Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.