Get-AutopatchHealth
2.1.2
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)
- payloadprod*.blob.core.windows.net (Azure Blob Storage–backed endpoint used by Autopatch)
- 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)
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 Test-AutopatchNetworkConnection Get-WindowsUpdateTaskStatus
Dependencies
This script has no dependencies.
Release Notes
v1.0.0 - 3.10.26 - Original published version
v1.1.0 - 3.10.26 - Fixed typo in report output
v2.0.0 - 3.23.26 - Added more checks and function documentation
v2.0.1 - 3.25.26 - Removed deprecated network endpoint from connectivity checks
v2.1.0 - 3.26.26 - Updated Get-Help documentation
v2.1.1 - 4.1.26 - Incorporated tester feedback and updated Get-Help documentation
v2.1.2 - 4.1.26 - Minor bug fixes and updated Get-Help documentation
FileList
- Get-AutopatchHealth.nuspec
- Get-AutopatchHealth.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 2.1.2 (current version) | 3 | 4/1/2026 |
| 1.1.0 | 31 | 3/10/2026 |
| 1.0.0 | 9 | 3/10/2026 |