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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export users with their attributes to a text file?

Status
Not open for further replies.

Noor2005

Technical User
Mar 26, 2005
12
CA
Hi all,
I have 100 users in W2k with Exchange server. I need their first name, family name and their exchange address in a text/excel file, I look for a command to do that but I don't succed to get the right one
Any idea
Thanks
 
Here It is, I hope It will help someone:
dsquery user -name * -limit 300| dsget user -u
pn -fn -ln -display -email -disabled -office > "file.txt"

Noor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top