Exporting a list of a given users group memberships from Active Directory

A while back, I showed you how to export a list of all members of a group, as well as all computers, from Active Directory. On a related note, here’s how to export all group memberships held by a single user:

  1. Log on to your Domain Controller
  2. Open a command prompt
  3. Enter the command dsget user "%DN%" -memberof > filename.txt, substituting %DN% for the Distinguished Name of the user in question, and replacing filename with something logical if you so desire

Posted

in

, ,

by

Tags:

Comments

By posting a comment, you consent to our collecting the information you enter. See privacy policy for more information.

This site uses Akismet to reduce spam. Learn how your comment data is processed.