Saturday, 26 July 2025

M365 Intune-Autopilot Troubleshooting issues

1. The process of generating the Autopilot hardware hash is encountering an error because it's trying to perform an action on a value that doesn't exist."

"Issue: Autopilot hardware hash collection via PowerShell is failing on sporadic Windows 11 devices, resulting in 'null-valued expression' errors. This issue is not observed on Windows 10 devices."

Solution # On the problematic Windows 11 machine (run as Administrator)

Install-Script -Name Get-WindowsAutopilotInfo -Force -AllowClobber

Update-Script -Name Get-WindowsAutopilotInfo # Run this to ensure you have the absolute latest version

Reference: https://www.powershellgallery.com/packages/Get-WindowsAutoPilotInfo/3.5 


2.Hybrid Entra ID Device stuck in Pending

"Many devices are stuck in 'Pending' status during Hybrid Entra ID join, failing to transition from 'Entra Registered' to 'Entra Hybrid Joined' after expanding Intune automatic enrollment."