AdsiPS
AdsiPS copied to clipboard
Performance - Using PropertiesToLoad
Look at implementing PropertiesToLoad on classes such as:
- System.DirectoryServices.AccountManagement.GroupPrincipal
- System.DirectoryServices.AccountManagement.UserPrincipal
- System.DirectoryServices.AccountManagement.ComputerPrincipal
The default set of properties retrieve from AD for each object is around 25 properties. Might want to limit that.
Related: https://evetsleep.github.io/adsi/2017/02/22/SDSFormat.html
We might want to keep the number of properties to return to the default or low number. We can use Get-ADSISchema to retrieve all properties available (mandatory and optional) if needed (many many properties). Maybe only the Mandatory would make sense.