One of the common requests you are likely to receive for then Exchange administrator is to generate
a report detailing which recipients are members of one or more distribution groups.
Unless we do you'll take a look at how to retrieve this information from the Exchange management shell.
So we have such a one liner which will allow us to view the least of which distribution group member
interactively.
Let's take a look at this code which will generate a list of exchange recipients and their associated
distribution group membership.
So let's go to loops through each item returned from the get distribution group come and loud as reprocesses
group the wrongs that get distribution group mamber to determine the member list for each group and
then use select object to construct a custom object that rewards member recipient type and group properties.
Notice that when running both exchange commands let's we are certain the result size parameter to limited
to ensure that the details will be retrieved.
They want that there are more than 1000 of group members.
The result of the receipt.
Come on let's look similar to mine screen output.
We have a member call on the recipient time Cohen and group them last loose code sample will allow you
to view the output to this shell if you want to export this information to seriously file.
You can add the following information to this code.
You can add a report variable.
And to use experts say says command.
So we'll at the report unwearable in the beginning of our code I'll type dollar sign report equals for
each and so on.
And the deeper the difference this time is that the output from our code is being saved in the report.
Wearable Mansouri from this code.
And once the report has been generated the report object is then exported to CSP file that can be open
in Excel for this real time report wearable and pipe the results of this wearable to.
Experts say a speed with the pass Seacole on backslash group members Dadds sales feed and no type type
parameter.
Now you can view the cantles of this file with get Guntown and come out.
Let's type get contempt Seacole and backslides group members Dud's says Vee.