Enumerating ACLs in large environments can cause system resource exhaustion in large environments.
I have been able to update the Function Get-ADRACL to include -SearchBase $DnBase and $objSearcherPath.SearchRoot = "LDAP://$DnBase" using an additional property, but that isn't ideal.
The property could be brought into the helper Function Invoke-ADRecon or could be used to iterate through the subtrees as smaller chunks.
Let me know if you want me to merge the -SearchBase and SearchRoot as an example to test with.
Enumerating ACLs in large environments can cause system resource exhaustion in large environments.
I have been able to update the
Function Get-ADRACLto include-SearchBase $DnBaseand$objSearcherPath.SearchRoot = "LDAP://$DnBase"using an additional property, but that isn't ideal.The property could be brought into the helper
Function Invoke-ADReconor could be used to iterate through the subtrees as smaller chunks.Let me know if you want me to merge the
-SearchBaseandSearchRootas an example to test with.