IntuneDriveMapping
IntuneDriveMapping copied to clipboard
Performance issues with DriveMapping Script
Can you create a variation of the script that removes the PARENT group lookup? (We use nested groups, but NOT for drive mapping.)
WITH parent group lookup = 53 seconds
$searcher.Filter = "(member:1.2.840.113556.1.4.1941:=$distinguishedName)"
WITHOUT parent group lookup = 0.2 seconds
$searcher.Filter = "(member=$distinguishedName)"
The parent group lookup (53 seconds per PC) caused our domain controllers to max out CPU when thousands of devices started using the script. We have tens of thousands of objects to lookup in our AD.