How can I export a list of user accounts that are enabled from Active Directory?
When you configure the “Account options” settings for a user in Active Directory, numerical values are assigned to the UserAccountControl attribute. When a user account is disabled, the following property flag is set: Property flag Value in hexadecimal Value in decimal ACCOUNTDISABLE 0x0002 2 To export all enabled accounts, we could specify the filter as the following: (&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2)) For example we could export all enabled user accounts via the following command, csvde -d “dc=
Related Questions
- Why do I get an error when I try to enumerate Active Directory (AD) users through the User Managers AD page, or why does AD authentication take so long?
- What advantages does Active Directory offer over using local user accounts on standalone servers?
- Can IAS authenticate user accounts in NetWare Directory Services (NDS)?