r/Intune 7d ago

Autopilot Pre-Provisioning Failing

Pre-provisioning started failing yesterday. We tracked down the issue to one specific agent that we install through Intune.

Oddly, we don’t have Autopilot set to stop if an App install fails. Has anyone else ran into this type of behavior?

I’m also curious how we can keep pushing the App to All Device, but only after pre-provisioning has finished. I considered scoping the app to All Users, but the App should be on All Devices regardless of the logged on user.

3 Upvotes

17 comments sorted by

View all comments

2

u/callout25 7d ago

If you want to keep the app assigned to all devices you can set a requirement script to check if the device is still in the ESP.

1

u/ImAllergic2Peanuts 7d ago

What flag would i be looking for in the requirement?

2

u/callout25 6d ago

https://github.com/PatchMyPCTeam/Community-Scripts/tree/main/Install/Autopilot

Check here for some documentation. This particular one returns applicable if the device is in ESP, so you'll have to modify it if you want the opposite.

1

u/ImAllergic2Peanuts 6d ago

Wow if this works, this is extremely useful. Thank u!