WEBVTT

00:08.090 --> 00:08.480
Note.

00:09.360 --> 00:15.090
If your virtual machine has other drives, such as a virtual floppy drive on drive eight or a virtual

00:15.090 --> 00:20.700
CD-ROM drive on Drive D, you can change the C in the demonstration script to A or D.

00:21.540 --> 00:24.060
This lets the script to display different results.

00:24.930 --> 00:28.230
In this demonstration you will see how to use the if construct.

00:29.070 --> 00:31.720
Demonstration steps one.

00:31.740 --> 00:36.120
Write a command that retrieves information about drive c two.

00:36.150 --> 00:41.220
Based on the value of the drive's drive type property, display a message about the type of drive.

00:47.050 --> 00:51.400
This demonstration is very important because it will help students in the upcoming lab.

00:52.240 --> 00:55.450
The script starts by creating an array of four computer names.

00:56.350 --> 00:58.450
Two of those names are known to be incorrect.

00:59.320 --> 01:04.390
The script enumerates through those so that only one computer name is being processed at a time.

01:05.200 --> 01:10.150
That technique makes sure that get see I am instance is working on only one target at a time.

01:10.990 --> 01:16.120
When the command encounters an error, it can start processing, display a message and move on to the

01:16.120 --> 01:17.200
next computer name.

01:18.070 --> 01:20.770
Students have to duplicate this technique in the lab.

01:21.550 --> 01:22.840
Demonstration steps.

01:23.740 --> 01:26.950
The script starts by creating an array of four computer names.

01:27.850 --> 01:29.950
Two of those names are known to be incorrect.

01:30.820 --> 01:35.890
The script enumerates through those so that only one computer name is being processed at a time.

01:36.730 --> 01:42.790
That technique makes sure that get see I am instance is working on only one target at a time when the

01:42.790 --> 01:44.180
command encounters an error.

01:44.200 --> 01:48.700
It can start processing, display a message and move on to the next computer name.
