Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting list of users in a domain or group 2

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I remember studying for my mcse there is a way to get a list of all the members of a group in AD (I seem to recall exporting into excel). Does anyone know the procedure?

Thanks in advance.

MCSECNA
 
type the following conmmand at the command prompt in the server u want to export the user account from :
with server=your server name
dc=yourdomain name

ldifde -f Exportuser.ldf -s server -d "dc=Infovall,dc=com" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" - cn,givenName,objectclass,samAccountName" -l

this will create afile called export user.ldf

now copy this file to a floppy and issue this command at the prompt of the server u want to copy the users to:

where server2 is ur server name

ldifde -i -f ExportOU.ldf -s Server2

hope this helps
Kapil
Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
Sixthsense,

Great tip - never even seen that command before !

Wish I had.......

Cheers

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top