WEBVTT

00:05.960 --> 00:14.450
When it comes to working with address lists a common task is in the list of members to an external file

00:14.730 --> 00:21.970
and this reader will take a look at the process of exporting the contents of an address list to access

00:21.970 --> 00:23.210
the file.

00:23.210 --> 00:25.840
Let's start off with a simple example.

00:25.910 --> 00:33.530
The foreign command real expert the All Users address lose to to three file when the command completes

00:33.890 --> 00:42.320
a list of users display names and their associated mailbox databases will be exported to Seacole on

00:42.320 --> 00:43.730
backslash all users.

00:43.740 --> 00:50.850
Dodd says Read the first thing we do in this example is create the All Users research wearable that

00:50.960 --> 00:55.250
stores an instance of the all user's address list.

00:55.310 --> 01:02.840
We can move them around and get recipient command left and specify the old pass filter using they're

01:03.020 --> 01:12.460
all users Daut recipient filter object as the value for the recipient pre-view filter parameter.

01:12.470 --> 01:21.200
The results are then piped to the select object come and let that grabs the display name and database

01:21.200 --> 01:23.750
properties of the recipient.

01:23.900 --> 01:28.190
And finally the data is exported to the CSP file.

01:28.190 --> 01:36.050
Of course the given example may not be that practical as it doesn't provide email addresses for the

01:36.050 --> 01:36.990
user.

01:37.010 --> 01:43.480
We can also export this information but it requires some special handling on our part.

01:43.490 --> 01:50.080
Let's export only the display name and email addresses for each user to do so.

01:50.090 --> 01:51.940
Use the following code.

01:52.030 --> 01:59.810
Since each recipient can have multiple empty addresses the email address is Rooper two of which the

01:59.810 --> 02:02.600
recipient is a multi-year wellat object.

02:02.750 --> 02:11.150
This means we can't simply export this railroad to an external file since it is actually an object and

02:11.450 --> 02:12.880
not a simple string.

02:12.890 --> 02:20.750
Well you enlist given command very using the select object come on get to create a calculated group

02:20.750 --> 02:28.880
or two for their email addresses collection using the German operator within the calculated property

02:28.880 --> 02:30.200
expression.

02:30.200 --> 02:38.330
The Erard in each address in the collection a single stream that will be delimited with a semi-colon

02:38.330 --> 02:39.270
character.

02:39.380 --> 02:45.140
The given method will work for any of their address lists in your organization.

02:45.140 --> 02:53.490
For example you can export the recipients of the Global Address List or girl using the following code.

02:53.690 --> 03:01.010
As you can see here the main difference is that this time they're using the Get Global Address List

03:01.010 --> 03:05.410
command left to export the default Global Address List.

03:05.510 --> 03:13.070
You can use this technique to add any address list in your organization just pacify the name or their

03:13.070 --> 03:13.930
address list.

03:13.930 --> 03:21.140
You want to export when you then either get the address list or get Global Address List.

03:21.160 --> 03:29.440
C'mon let's if you are in a situation when you need to extract all users from a distribution group besides

03:29.450 --> 03:37.000
experts in these same two three or four months they can also be exported into X-amount formant.

03:37.040 --> 03:41.920
This is easily done by running the full in one line or the first row.

03:41.950 --> 03:50.360
And this example is used to collect old distribution group members from a group called Deal underscore

03:50.440 --> 03:55.540
marketing by using the come and let's get distribution group member.

03:55.550 --> 04:04.130
The result is safe to enter the variable DL and on our next row we are using that we're able to export

04:04.130 --> 04:08.770
the distribution group members into an X-amount file use.

04:08.810 --> 04:17.750
Get help expert Desch Seelye example to see all the details regarding the command let expert d'Este

04:17.750 --> 04:19.450
safelight example.

04:19.580 --> 04:24.020
You can use also get help detailed for this command.

04:24.050 --> 04:32.180
Now if you want to have a look at our recent expurgated content we can use the command glad to import

04:32.490 --> 04:36.800
s.a.a like somehow specifying the paths for the file.

04:36.830 --> 04:39.150
For example Seacole on backslash.

04:39.260 --> 04:41.270
DL got X amount.

04:41.360 --> 04:43.570
Now let's take a look at all this.

04:43.610 --> 04:46.930
Three examples of exported files.

04:47.090 --> 04:48.610
We've just created.

04:48.620 --> 04:57.620
First let's open the file for the first example which was called all users one and as you can see this

04:57.950 --> 05:06.220
file contains only display name and database without Asam to be email addresses know let's open the

05:06.220 --> 05:11.350
second file for the second example with the name all users do.

05:11.500 --> 05:17.410
And now it contains some Tippee email addresses for all users.

05:17.500 --> 05:26.800
And the third file was God God says VI which contains export to default global least you can also make

05:26.800 --> 05:28.200
use of get Guntown.

05:28.210 --> 05:28.620
Come on.

05:28.640 --> 05:32.760
Let to see the contents of all these files.

05:32.770 --> 05:36.360
Let's type got content Seacole on backslash.

05:36.490 --> 05:42.120
All users want or guat get content Seacole and backslash.

05:42.150 --> 05:43.620
God God says read.
