WEBVTT

00:05.960 --> 00:12.530
One of the common requests you are likely to receive for then Exchange administrator is to generate

00:12.530 --> 00:21.320
a report detailing which recipients are members of one or more distribution groups.

00:21.380 --> 00:28.190
Unless we do you'll take a look at how to retrieve this information from the Exchange management shell.

00:28.280 --> 00:35.570
So we have such a one liner which will allow us to view the least of which distribution group member

00:35.780 --> 00:37.080
interactively.

00:37.220 --> 00:44.870
Let's take a look at this code which will generate a list of exchange recipients and their associated

00:45.110 --> 00:47.510
distribution group membership.

00:47.510 --> 00:55.340
So let's go to loops through each item returned from the get distribution group come and loud as reprocesses

00:55.340 --> 01:03.290
group the wrongs that get distribution group mamber to determine the member list for each group and

01:03.290 --> 01:14.680
then use select object to construct a custom object that rewards member recipient type and group properties.

01:14.840 --> 01:24.770
Notice that when running both exchange commands let's we are certain the result size parameter to limited

01:25.130 --> 01:28.130
to ensure that the details will be retrieved.

01:28.150 --> 01:33.490
They want that there are more than 1000 of group members.

01:33.500 --> 01:35.040
The result of the receipt.

01:35.060 --> 01:39.680
Come on let's look similar to mine screen output.

01:39.680 --> 01:47.000
We have a member call on the recipient time Cohen and group them last loose code sample will allow you

01:47.000 --> 01:54.410
to view the output to this shell if you want to export this information to seriously file.

01:54.440 --> 01:58.750
You can add the following information to this code.

01:58.820 --> 02:02.220
You can add a report variable.

02:02.330 --> 02:04.810
And to use experts say says command.

02:04.940 --> 02:14.540
So we'll at the report unwearable in the beginning of our code I'll type dollar sign report equals for

02:14.540 --> 02:15.760
each and so on.

02:15.980 --> 02:23.440
And the deeper the difference this time is that the output from our code is being saved in the report.

02:23.440 --> 02:26.160
Wearable Mansouri from this code.

02:26.300 --> 02:35.890
And once the report has been generated the report object is then exported to CSP file that can be open

02:35.940 --> 02:42.960
in Excel for this real time report wearable and pipe the results of this wearable to.

02:42.980 --> 02:51.230
Experts say a speed with the pass Seacole on backslash group members Dadds sales feed and no type type

02:51.230 --> 02:52.160
parameter.

02:52.160 --> 02:58.910
Now you can view the cantles of this file with get Guntown and come out.

02:58.910 --> 03:04.280
Let's type get contempt Seacole and backslides group members Dud's says Vee.
