Get-AutopatchHealth
2.3.4
telemetry level, Intune enrollment and IME activity, co‑management workloads, Windows Update policy
authority, WSUS or registry blockers, required services, network endpoints, and scheduled tasks. It runs
safely in SYSTEM or user context and outputs console results
telemetry level, Intune enrollment and IME activity, co‑management workloads, Windows Update policy
authority, WSUS or registry blockers, required services, network endpoints, and scheduled tasks. It runs
safely in SYSTEM or user context and outputs console results, a readiness summary, and an exit code suitable for
Intune detection/remediation.
GENERAL CONFIGURATION HEALTH CHECKS
Operating System Release Branch:
Ensures the device is on a supported GA/production channel (not Windows Insiders/Preview).
Registry Settings:
Checks for Autopatch‑blocking or WSUS‑redirecting values:
- HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
-- DoNotConnectToWindowsUpdateInternetLocations, DisableWindowsUpdateAccess, WUServer, WUStatusServer
- HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
-- NoAutoUpdate
- Update source override keys:
-- SetPolicyDrivenUpdateSourceForDriverUpdates, FeatureUpdates, OtherUpdates, QualityUpdates
If set to '1' and a WUSserver is configured, the device tries to use WSUS instead of Autopatch.
Telemetry:
Reads the AllowTelemetry policy value from the local registry to confirm minimum level = **1 (Required)**.
Intune Enrollment & IME Activity:
Validates Intune enrollment indicators and IME log activity within the last 28 days.
For comanaged devices, checks required workload ownership:
- Windows Update policies
- Device configuration
- Office Click to Run apps
Update Policy Authority:
Reads the PolicySources value to ensure Intune/Autopatch is configured:
HKLM\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\PolicyState\PolicySources
Values:
1=GPO, 2=SCCM, 4=Intune/Autopatch, 5=GPO+MDM (MDM wins), 6=SCCM+MDM (MDM wins).
Also attempts to identify the Autopatch ring a device is assigned to (test, ring1, ring2, etc.)
AUTOPATCH SERVICE HEALTH CHECKS
Validates required Windows Update–related services:
- BITS (downloads update payloads)
- CryptSvc (signature validation)
- DiagTrack (telemetry pipeline)
- DoSvc (Delivery Optimization)
- UsoSvc (update orchestration)
- WaaSMedicSvc (repairs Windows Update stack)
- wuauserv (core Windows Update client)
NETWORK ENDPOINT CONNECTIVITY CHECKS
Confirms reachability of required Autopatch and Microsoft endpoints:
- mmdcustomer.microsoft.com (Microsoft Managed Desktop (MMD) / Windows Autopatch service endpoint)
- mmdls.microsoft.com (part of the Autopatch logging and service communication layer)
- login.windows.net (endpoint used to issue and refresh authentication tokens)
- device.autopatch.microsoft.com (Service endpoint that must be reachable from Autopatch devices)
- services.autopatch.microsoft.com (Service API endpoint that must be reachable for Autopatch functionality)
- Global Device Listener: devicelistenerprod.microsoft.com (global Autopatch device listener communication endpoint required for Autopatch‑managed devices)
- EU Device Listener: devicelistenprod.eudb.microsoft.com (EU tenants) (EU endpoint used instead of the global listener within the EU Data Boundary)
WINDOWS UPDATE SCHEDULED TASK CHECKS
Validates required scheduled tasks:
- \Microsoft\Windows\WindowsUpdate\Scheduled Start (triggers scans/downloads)
- \Microsoft\Windows\UpdateOrchestrator\Report policies (evaluates effective policy)
WINDOWS UPDATE EVENT LOG CHECKS
Scans device event logs for known Windows Update error code entries within the last 7 days
(Edit $DaysBack to change time period):
- Microsoft-Windows-WindowsUpdateClient/Operational
- Microsoft-Windows-WindowsUpdateClient/Admin
- Microsoft-Windows-UpdateOrchestrator/Operational
- Microsoft-Windows-DeliveryOptimization/Operational
Installation Options
Owners
Package Details
Author(s)
- Jeff Gilbert
Tags
Functions
Use-NoUniCode RU-Admin Test-Branch Check-Registry Test-Telemetry Intune-Checks Test-UpdateEngine Get-AutopatchServiceStatus Update-Events Test-AutopatchNetworkConnection Get-WindowsUpdateTaskStatus Build-Report Convert-ToHtmlTable
Dependencies
This script has no dependencies.
Release Notes
v2.3.4 - 4.14.26 - Registry check bug fixes
v2.3.3 - 4.14.26 - Corrected telemetry check values; minor bug fixes
v2.3.2 - 4.8.26 - Added HTML summary report and logging functionality. Hosted on GitHub for Get-Help -Online help.
v2.2.0 - 4.3.26 - Added Windows Event log checks and report functionality
v2.1.1 - 4.1.26 - Incorporated tester feedback and updated Get-Help documentation
v2.0.1 - 3.25.26 - Removed deprecated network endpoint from connectivity checks
v2.0.0 - 3.23.26 - Added more checks and function documentation
v1.0.0 - 3.10.26 - Original published version
FileList
- Get-AutopatchHealth.nuspec
- Get-AutopatchHealth.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 2.3.4 (current version) | 61 | 4/14/2026 |