Active Directory can hold valuable user data, including contact information, their departments, and even office locations. Using this data source for administrative purposes can save you time when performing everyday tasks like auditing user accounts and checking software licenses. In this IT Dojo video, I show you an easy way to extract the data stored in Active Directory using the Comma Separated Value Data Exchange (CSVDE) command.
The CSVDE command is a tool you may never know about, unless you just stumble across it. But once you find it, you'll find all kinds of cool things it can do. For example, you can generate a dataset from an OU called 'Directors' that contains each user's given-name, surname, and default e-mail address using the command (all on one line):
csvde -d "OU=Directors,DC=domain,dc=local" -f test.csv -r "(&(objectClass=user)(objectCategory=person)" -l " givenName, sn, mail"
This is just one of many ways to use the CSVDE command. For more information on using the CSVDE command read Justin Fielding's article, "Simplify admin tasks by exporting Active Directory data with CSVDE." From the article page, you can print Justin's tip, save it to your TechRepublic Workspace, e-mail it to a friend or colleague, and even Digg it.
For more Active Directory advice, check out the following TechRepublic Resources:
- 10 ways to benchmark your Active Directory environment
- Query Active Directory for empty computer account descriptions
- Batch Active Directory tasks with ease using dsmove
- Tightening Active Directory-Integrated DNS zone aging
- Reconcile IP addressing from Active Directory DNS for Windows Server 2003 subdomains
- Use the DNS CNAME for database connectivity
- Windows Server 2008 Domain and Forest Functional Levels
- How do I use the Windows Time Service?
Bill Detwiler has nothing to disclose. He doesn't hold investments in the technology companies he covers.
Bill Detwiler is Managing Editor of TechRepublic and Tech Pro Research and the host of Cracking Open, CNET and TechRepublic's popular online show. Prior to joining TechRepublic in 2000, Bill was an IT manager, database administrator, and desktop support specialist in the social research and energy industries. He has bachelor's and master's degrees from the University of Louisville, where he has also lectured on computer crime and crime prevention.