Archive more than one million files located in one folder Windows operating systems are not good candidates to host and manage million files located in only folder (no subfolders). If you try to list the content of the folder (using
List user objects and count them
There are several ways to list specific Active Directory objects. I will show you two ways : using the instance of the System.DirectoryServices.DirectoryEntry class or using the powershell cmdlet Get-ADObject $ldapQuery = “(&(objectCategory=user)(objectClass=user))” $de = new-object system.directoryservices.directoryentry $ads = new-object