Open jroth-nexus opened 8 months ago
I guess you are talking about this line?
Please try to replace Invoke-RestMethod
for this one and let me know:
$intuneDevice = Invoke-GraphAPIRequest -header $header -uri "https://graph.microsoft.com/beta/deviceManagement/managedDevices" | select deviceName, deviceEnrollmentType, lastSyncDateTime, aadRegistered, azureADRegistered, deviceRegistrationState, azureADDeviceId, emailAddress
On INTUNE/Get-MDMClientData.ps1 the Intune graph API call only returns the first 500 devices. For companies that have large amounts of data, that causes issues.