Exporting information from AD

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Everyone

I need to export user login Id's from my Active Directory to a test file. What is the easiest and quickest way of doing that

Marty
 
Scroll down in this news group to the subject "Dead Machine Accounts" go to
the second to last conversation and download the file Ace is providing.
This will provide a text file of all users with some additional info.

Just run it via a dos prompt using cscript


Paul Bergson MCT, MCSE, CNE, CNA, CCA



Hi Everyone;

I need to export user login Id's from my Active Directory to a test file.
What is the easiest and quickest way of doing that?
 
Right-click the OU in Active Directory Users and Computers and select
export list

Or use the csvde command

To export all user and computer accounts
csvde -m -f user-list.csv -r "(objectClass=user)" -p Subtree -l
samAccountName

To export all only user accounts
csvde -m -f user-list.csv -r
"(&(objectClass=user)(objectCategory=person))" -p Subtree -l
samAccountName

regards
Johan Arwidmark

Windows User Group - Nordic
http://www.wug-nordic.net
 
Back
Top