A service that simplifies device provisioning and setup for end users, enabling zero-touch deployment
@Engelhardt, Bryan, Thanks for your reply. After researching more, I find there's a property named device.managementType which is used for enrolled device. You can try to add the following two properties to see if it can work.
device.managementType -eq "MDM"
device.enrollmentProfileName -eq "Autopilot profile name"
If there's any update, feel free to let us know.