Event details
Under your ESP configuration you have an option toward the bottom of the configuration called:
Block device use until these required apps are installed if they are assigned to the user/deviceThat option only allows you to either block ALL required apps or Specified required apps. I would find it far more useful to do ALL EXCEPT FOR and then specify the exceptions. The reason behind this is that there are certain apps that do not play nice with installation during Autopilot deployment.
- jdburlingApr 27, 2022Copper Contributor
Agree that this would be a useful feature.
We resorted to a custom requirement script that detects the presence of the ESP, and check the output of the script as the requirement ("ESP is not running" as the requirement). It's not 100% reliable, however.$ESPProcesses = Get-Process -Name 'CloudExperienceHostBroker' -ErrorAction 'SilentlyContinue' if ($ESPProcesses.Count -eq 0) { Write-Host 'ESP is not running' }- Steven-HApr 27, 2022Brass Contributor
I did something similar but based it off the FirstSync registry key which seems to get set after Autopilot finishes. However, I found that this key doesn't always exist under some of the device reset scenarios. It hasn't been a huge problem for me though as my policy has been to completely wipe the device before handing it off to another user.
Get-ItemPropertyValue -Path HKLM:\SOFTWARE\Microsoft\Enrollments\*\FirstSync\ -Name IsSyncDone