Export Active Active Directory Users into CSV
2013-05-23 09:12
381 查看
hat’s not a typo. Export only active Active Directory users (not disabled) into a csv file with csvde, the following should suite your needs:
You can easily put this into task scheduler for automated reporting at whatever interval you like. I’m currently running this manually every 1st of the month but I will definitely be looking into automating and emailing myself, or directly to the person who needs the report. If anyone knows how to get rid of the DN field in the output, please let me know.
1 | # Collect Internal users for your audit purposes |
2 | csvde -d "OU=Users,OU=Internal,DC=DomainName,DC=Suffix" -r "(&(objectCategory=person)(!UserAccountControl=66050)(!UserAccountControl=514))" -l SAMAccountName,name,description,UserAccountControl,logonHours -f "InternalUsers.csv" |
相关文章推荐
- 添加一个用户到 active directory users 和group
- Query Active Directory Users using C#[转]
- A Userful Class:CActiveDirectoryUsers to Get some information about ActiveDirectory
- 【转】Import User Profile Photos from Active Directory into SharePoint 2010
- Import users from Active Directory
- How to get groups, users from Active Directory with C#
- User的Delegation选项卡在Active Directory Users and Computers找不到?
- SQLite Tutorial 4 : How to export SQLite file into CSV or Excel file
- VBS Get Sql Server Table Data and Export to CSV File...
- SQL Server ->> 使用Azure Active Directory Authentication连接到Azure SQL Database
- Active Directory Password Hash Extraction
- Get the SID of an Active Directory User
- Active Directory Integrated Squid Proxy
- active directory features
- Active Directory Service Interfaces (ADSI) 2.5
- AD健康检查|Active Directory Snapshot tool下载?
- 译文: Spring Security 与 Active Directory LDAP 例子
- asp and javascript: sql server export data to csv and to xls
- OpenKM v6.2.3 -> Active Directory Integration
- C#Export data to CSV