Get all devices in a specific enrollmentProfile (iOS)

%3CLINGO-SUB%20id%3D%22lingo-sub-2806189%22%20slang%3D%22en-US%22%3EGet%20all%20devices%20in%20a%20specific%20enrollmentProfile%20(iOS)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2806189%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20count%20devices%20assigned%20to%20a%20enrollmentProfile%3F%3C%2FP%3E%3CP%3EI%20can%20manually%20do%20this%20by%20going%20into%20the%20profile%20and%20hit%20the%20Export%20button%20and%20get%20a%20csv%20file.%20But%20is%20there%20a%20way%20to%20do%20it%20using%20graph%20or%20even%20PowerShell%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20just%20want%20to%20do%20a%20simple%20count%20on%20devices%20inside%20a%20specific%20enrollmentProfile.%20In%20each%20profile%20I%20can%20view%20all%20the%20assigned%20devices%20under%26nbsp%3B%20%22assigned%20devices%22%20I%20can%20use%20an%20export%20function%20to%20get%20it%20in%20CSV%2C%20but%20I%20dont%20seem%20to%20find%20a%20way%20to%20do%20this%20using%20Graph%20or%20PowerShell%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fenrollment%2Fdevice-enrollment-program-enroll-ios%23create-an-apple-enrollment-profile%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fintune%2Fenrollment%2Fdevice-enrollment-program-enroll-ios%23create-an-apple-enrollment-profile%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2806189%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Graph%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi

 

Is there any way to count devices assigned to a enrollmentProfile?

I can manually do this by going into the profile and hit the Export button and get a csv file. But is there a way to do it using graph or even PowerShell?

 

So I just want to do a simple count on devices inside a specific enrollmentProfile. In each profile I can view all the assigned devices under  "assigned devices" I can use an export function to get it in CSV, but I dont seem to find a way to do this using Graph or PowerShell

 

https://docs.microsoft.com/en-us/mem/intune/enrollment/device-enrollment-program-enroll-ios#create-a...

0 Replies