How do I export a list of users who belong to a specific AD group?

10:05 AM

There are times when a customer has a large amount of AD users and requests a list of users who belong to a certain AD group. If you ever want to export a list of users from AD who belong to a specific AD group you can use dsquery to do so.

Example:

Customer: XYZ
AD group: XYZ_ReportCorp

dsquery group -name XYZ_ReportCorp|dsget group -members|dsget user -samid -fn -ln > c:\XYZ_List.txt

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results