WEBVTT

00:00.370 --> 00:07.590
Although most windows power shell commands produce just one kind of object some commands are capable

00:07.590 --> 00:16.080
of producing multiple kinds of objects for example get child diatom does pass for instance the colon

00:16.290 --> 00:20.400
backslash Ringo's pipe get mamber this.

00:20.550 --> 00:24.700
This command produces two kinds of objects filing for.

00:24.810 --> 00:26.880
And directory info.

00:26.970 --> 00:35.190
It does so because a single directory listing can include both files and folders or directories commands

00:35.280 --> 00:43.110
that produce multiple kinds of objects can be more difficult to work with and require extra thought

00:43.380 --> 00:44.250
from you.

00:44.280 --> 00:52.440
For example a file in four object has allows property that contains the file size in bytes a directory

00:52.540 --> 00:56.400
for object does not have a correspondent property.

00:56.400 --> 01:04.170
If you are writing a command line that first run get good child diatom or one of its aliases such as

01:04.170 --> 01:12.100
dir or ls and then try to filter the output based on the lands property.

01:12.120 --> 01:19.470
You might not obtain the results that you expected because directory and for objects lack the property.

01:19.530 --> 01:24.930
Always be careful when the pipeline contains multiple kinds of objects.

01:24.930 --> 01:32.460
Please note that if you pipe multiple kinds of objects to get member the command will display the members

01:32.460 --> 01:35.190
foreach kind of object separately.

01:35.190 --> 01:43.170
For example pi can get event lock to get member can produce Elche amount of output because each kind

01:43.170 --> 01:47.410
of event lock and 3 is seen by GET member as a for an.
