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