WEBVTT

00:06.440 --> 00:13.070
To this point all the commands that you have run in Windows Power Shell have used the shells default

00:13.070 --> 00:18.030
format and system to produce their results on the screen.

00:18.170 --> 00:21.240
This format and system uses the following rules.

00:21.280 --> 00:26.550
First it finds the type name of the first object in the pipeline.

00:26.660 --> 00:32.310
Second determine whether the object type has a default format on view.

00:32.450 --> 00:40.010
These views are defined in SML files several of your definition files are included in Windows Power

00:40.010 --> 00:46.700
Shell and third parties can provide additional of your definitions if the object type has a default

00:46.790 --> 00:48.080
defined view.

00:48.110 --> 00:55.910
The shell will use it so what if the object type does not have a defined field decide whether that object

00:55.910 --> 01:03.980
type has the default display properties that if it does the properties in this set will be displayed.

01:04.070 --> 01:10.040
If there are 5 or more properties they will be displayed as at least.

01:10.130 --> 01:15.040
Otherwise they will be displayed at the table and step 4.

01:15.140 --> 01:21.990
If the object type does not have a default display properties set all the properties will be displayed.

01:22.070 --> 01:26.550
If there are more than 4 properties they will be displayed as a list.

01:26.630 --> 01:29.590
Otherwise they will be displayed to the table.

01:29.600 --> 01:36.920
You can define your own views and properties set to change the default appearance of a specified object

01:36.920 --> 01:37.740
time.

01:38.060 --> 01:41.300
Doing this is beyond the scope of this course.

01:41.300 --> 01:49.900
However you can really help for update format date and update first type data commands.

01:50.000 --> 01:58.120
For more information now you can pipe objects to the format or white command to produce a white list.

01:58.250 --> 02:07.520
The command to default to do call on display of their object's name probit is because most objects have

02:07.520 --> 02:08.710
a name property.

02:08.810 --> 02:12.420
The command has that L S F W.

02:12.560 --> 02:20.270
You can modify the output by using parameters call parameter use call to just to specify the number

02:20.270 --> 02:25.190
of calls to display or use auto size to load the command.

02:25.190 --> 02:31.540
Calculate the maximum number of columns that will fit Ruperta parameter.

02:31.580 --> 02:36.200
Use Brobeck to specify a single property to display.

02:36.200 --> 02:44.330
Other than name you can also pipe objects to the former at least command to display object's properties

02:44.480 --> 02:46.040
in a list format.

02:46.070 --> 02:54.050
If you do not specify properties to display and the object has a set that is defined there objects default

02:54.050 --> 02:57.950
display properties set will be shown otherwise.

02:57.980 --> 03:03.610
All the objects properties will be shown for at least have the LS f.

03:03.610 --> 03:07.760
Well you can customize the output by using parameters.

03:07.790 --> 03:16.550
Use property parameter to specify a comma separated list of property names to display or specify the

03:16.640 --> 03:20.540
asterisk wildcard to display all properties.

03:20.540 --> 03:26.980
This is a useful technique for a Greek is c in all an object's properties and there.

03:26.980 --> 03:33.530
Well yours for Motley's does not contain other parameters that you will use frequently.

03:33.530 --> 03:41.290
Read the calc for the command for a long long story about its other parameters tables.

03:41.420 --> 03:50.300
You can buy objects to the Form a table command to display object properties ilah in air columnar formant

03:50.510 --> 03:53.430
form a table has the LS f t.

03:53.540 --> 04:00.650
By default the command will display the properties in the object's default display properties set.

04:00.650 --> 04:08.750
If one is defined the command will always try to feel the rates of the screen and will let space between

04:08.780 --> 04:10.900
columns to fill the screen.

04:10.910 --> 04:17.940
You can customize the output by using parameters so property parameter the property parameter.

04:17.960 --> 04:27.010
Except a comma separated list of property names you can use the wildcard to display all Robertus.

04:27.050 --> 04:35.380
However for objects having lots of properties the command may eliminate colons that do not fit or to

04:35.390 --> 04:44.630
size parameter there or to size parameter dries to size each column to hold to its widest item and eliminates

04:44.690 --> 04:51.160
additional space between columns and the last parameter for form a table is read.

04:51.290 --> 04:56.690
This perimeter enables colon content to wrap across several lines.

04:56.690 --> 05:00.290
This prevents data from being truncated.

05:00.290 --> 05:05.510
Now let's have a look at some demonstration examples using these commands.

05:05.750 --> 05:11.150
You'll see how to use the basic features of the three main formatting commands.

05:11.240 --> 05:20.060
So for example to display a list of pros ID numbers in it to call on while at least type get Brosius

05:20.330 --> 05:24.120
by former wide dush property ID.

05:24.140 --> 05:31.130
The second example to display a list of proses ID numbers in a 5 Colin White list.

05:31.130 --> 05:39.590
You could try get process but former White property idea first call on file to display a list of process

05:39.590 --> 05:43.790
names in as many Cohan's as will fit on the screen.

05:43.910 --> 05:51.800
You could type get processed by former White or two sides to display a list that shows only saw with

05:51.800 --> 06:00.460
names and state houses you could type good service Spike formant list property name chromis status.

06:00.530 --> 06:06.490
The next example to display a list that shows all properties of every grossers.

06:06.500 --> 06:07.100
Please stop.

06:07.100 --> 06:15.590
Get process by form at least property asterisk and the last example to display a table that shows the

06:15.590 --> 06:25.940
most recent 50 entries from the security event log and display only the time region and Event ID for

06:25.940 --> 06:32.200
each entry and also do not allow additional space between table.

06:32.330 --> 06:42.380
We could type guess event log does log name security Desch nearest 50 Pypard to form a table property

06:42.680 --> 06:46.520
event ID time written Desch auto size.
