When you
receive task for getting members of a group it can be simply done if the group
has 5-10 members.
But
sometimes groups have more than 20 users and it can be frustrated.
You can use
the following PowerShell commands to export the users:
get-ADGroupmember
groupName
If we want to see only the names we can use the pipeline: select name
We can also create script that will do it automatically by giving the name of the group and create CSV file with the names to desktop:
Code can be
found here: http://pastie.org/8418008#
אין תגובות:
הוסף רשומת תגובה