Note.
If your virtual machine has other drives, such as a virtual floppy drive on drive eight or a virtual
CD-ROM drive on Drive D, you can change the C in the demonstration script to A or D.
This lets the script to display different results.
In this demonstration you will see how to use the if construct.
Demonstration steps one.
Write a command that retrieves information about drive c two.
Based on the value of the drive's drive type property, display a message about the type of drive.
This demonstration is very important because it will help students in the upcoming lab.
The script starts by creating an array of four computer names.
Two of those names are known to be incorrect.
The script enumerates through those so that only one computer name is being processed at a time.
That technique makes sure that get see I am instance is working on only one target at a time.
When the command encounters an error, it can start processing, display a message and move on to the
next computer name.
Students have to duplicate this technique in the lab.
Demonstration steps.
The script starts by creating an array of four computer names.
Two of those names are known to be incorrect.
The script enumerates through those so that only one computer name is being processed at a time.
That technique makes sure that get see I am instance is working on only one target at a time when the
command encounters an error.
It can start processing, display a message and move on to the next computer name.