• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 680
  • Last Modified:

Export "memberof" of every user in AD into text file

Hi,
How do you export the "user" and the "memberof" attribute for every users in AD and output it into a text file?
I believe there is a command line that we can use.

Thanks
0
Coregas
Asked:
Coregas
1 Solution
 
Mike KlineCommented:
There are lots of ways (dstools, csvde, adfind, powershell, etc)

I like adfind

http://www.joeware.net/freetools/tools/adfind/index.htm

adfind -default -f "&(objectcategory=person)(objectclass=user)" samaccountname memberof -nodn > c:\users.txt

adinfo is a nice free GUI tool that can do it too   http://www.cjwdev.co.uk/Software/ADReportingTool/Info.html

Thanks

Mike
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now