AdsiPS icon indicating copy to clipboard operation
AdsiPS copied to clipboard

Performance - Using PropertiesToLoad

Open lazywinadmin opened this issue 9 years ago • 2 comments

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.

lazywinadmin avatar Aug 19 '16 02:08 lazywinadmin

Related: https://evetsleep.github.io/adsi/2017/02/22/SDSFormat.html

lazywinadmin avatar Jun 14 '17 14:06 lazywinadmin

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.

lazywinadmin avatar Sep 09 '19 02:09 lazywinadmin