Introduction
Prerequisites
- Licensing: Microsoft 365 Business Premium, Windows 10/11 Education A3/A5, Windows 10/11 Enterprise E3/E5 (including F3), or VDA equivalents.
- Device platform: Windows 10/11 Enterprise/Education, Windows IoT Enterprise (certain LTSC limitations apply).
- Network: Internet access to Intune, Windows Update, and Autopatch endpoints.
Step 1: Verify Prerequisites
Step 2: Enroll Devices in Windows Autopatch
- Navigate to Devices > Windows > Windows Autopatch > Enroll.
- Select device groups (Entra groups) to enroll.
- Confirm enrollment status in the Autopatch enrollment blade.
Step 3: Configure Update Rings (if needed)
- Avoid assigning custom rings to Autopatch-managed devices; rely on service-managed policies.
- Adjust ring settings (deferral, grace periods) only for opt-out groups.
Step 4: Deploy Proactive Remediation Script for Patch Verification
Powershell
Powershell
- Upload detection and remediation scripts as a script package (Intune > Devices > Scripts).
- Assign to targeting groups (can be the same Autopatch group or Entra group).
- Set schedule (e.g., every 8 hours) and user context (System).
- Enable notifications for failed detections.
Step 5: Monitor Compliance and Alerts
- Intune device compliance and update compliance reports.
- Windows Autopatch Management Status Report (tenant-wide view of eligible devices).
- Windows Autopatch Alert Report (active alerts, severity, impacted update types).
- Detection scripts run on schedule to verify patch state.
- Manual verification via Get-HotFix, Get-ItemProperty for registry keys, or WSUS/ConfigMgr queries.
- Handling failed patches:
- Detection failure triggers remediation script (e.g., retry Windows Update, reset Windows Update components).
- If remediation fails, device marked non-compliant; admin can investigate logs (WindowsUpdate.log, SetupAPI.log).
- Rollback options: Use Windows Update for Business uninstall policies, or deploy a script to uninstall the problematic update via wusa.exe /uninstall.
- Reporting and alerting:
- Configure alert rules in Intune for compliance drift.
- Use Autopatch alert email notifications or webhook integrations.
- Export reports to Power BI or Log Analytics for trend analysis.
Step 6: Remediate Failures and Verify Fixes
- When detection fails, remediation script runs automatically.
- Verify success by checking subsequent detection returns exit code 0.
- If persistent failure, open ticket, collect logs, consider pausing the update ring for that device group.
Step 7: Review Reports and Adjust Policies
- Weekly: Examine Intune update compliance trends.
- Monthly: Review Autopatch reports for rollback/pause events.
- Adjust ring deferrals or exclusion groups based on observed issues.
- Update detection/remediation scripts as new KBs are released.
Sources
- Windows Autopatch overview: https://learn.microsoft.com/en-us/windows/deployment/windows-autopatch/overview/windows-autopatch-overview
- Windows Autopatch prerequisites: https://learn.microsoft.com/en-us/windows/deployment/windows-autopatch/prepare/windows-autopatch-prerequisites
- Manage Windows Update ring policies (Intune): https://learn.microsoft.com/en-us/intune/device-updates/windows/manage-update-rings
- Update ring settings reference: https://learn.microsoft.com/en-us/intune/device-updates/windows/ref-update-ring-settings
- Use Remediations to Detect and Fix Support Issues (Intune): https://learn.microsoft.com/en-us/intune/device-management/tools/deploy-remediations
- PowerShell Scripts for Remediations reference: https://learn.microsoft.com/en-us/intune/device-management/tools/ref-remediation-scripts
- Windows Autopatch alerts and remediations: https://learn.microsoft.com/en-us/windows/deployment/windows-autopatch/monitor/alerts-remediations
- Windows Autopatch management status report: https://learn.microsoft.com/en-us/windows/deployment/windows-autopatch/monitor/windows-autopatch-management-status-report
- Windows Autopatch groups overview: https://learn.microsoft.com/en-us/windows/deployment/windows-autopatch/deploy/windows-autopatch-groups-overview