1
00:00:01,140 --> 00:00:04,850
Hello everyone, and welcome back to the next lesson in

2
00:00:04,850 --> 00:00:07,140
Learning the PowerShell Language.

3
00:00:07,140 --> 00:00:08,050
In this lesson,

4
00:00:08,050 --> 00:00:11,980
we're going to look at working with some very common features in

5
00:00:11,980 --> 00:00:16,540
PowerShell and that means working with arrays and hashtable,

6
00:00:16,540 --> 00:00:20,010
these are things that you're going to use all the time and it's very

7
00:00:20,010 --> 00:00:22,020
important that you understand what these things are,

8
00:00:22,020 --> 00:00:25,300
how to create them, how to recognize them, and how to use them.

9
00:00:25,300 --> 00:00:25,810
Alright,

10
00:00:25,810 --> 00:00:30,450
so let's dig in. In PowerShell, we are going to work with arrays and

11
00:00:30,450 --> 00:00:34,290
hashtables very often in PowerShell scripting.

12
00:00:34,290 --> 00:00:37,300
So these are the kind of language elements that you're

13
00:00:37,300 --> 00:00:39,060
going to use really all the time,

14
00:00:39,060 --> 00:00:43,050
so it's important that you master that. However,

15
00:00:43,050 --> 00:00:47,410
we can also use these things, arrays and hashtables, in interactive

16
00:00:47,410 --> 00:00:50,940
console sessions, that is at the PowerShell prompt.

17
00:00:50,940 --> 00:00:52,600
So during your daily work,

18
00:00:52,600 --> 00:00:56,940
if you're running things at a PowerShell prompt to do your job,

19
00:00:56,940 --> 00:00:59,090
you can use arrays and hashtables, in fact,

20
00:00:59,090 --> 00:01:02,480
you'll find that it can make your work a little bit easier by creating an

21
00:01:02,480 --> 00:01:06,580
array of say computer names or creating a hashtable with some custom

22
00:01:06,580 --> 00:01:08,870
properties or parameters that you want to splat.

23
00:01:08,870 --> 00:01:11,940
We'll get to splatting a little bit later.

24
00:01:11,940 --> 00:01:16,810
So these are features, arrays and hashtables I'm talking about, they're not

25
00:01:16,810 --> 00:01:21,210
unique to PowerShell. You will find these features in lots of programming

26
00:01:21,210 --> 00:01:26,040
and scripting languages. Now in VB script, we had arrays and we had

27
00:01:26,040 --> 00:01:28,450
hashtables, also known as a dictionary object.

28
00:01:28,450 --> 00:01:30,330
So there is nothing new here.

29
00:01:30,330 --> 00:01:34,110
If you have done any other sort of scripting or programming,

30
00:01:34,110 --> 00:01:37,190
you should probably be familiar with the concepts that

31
00:01:37,190 --> 00:01:39,740
we're going to look at in this module.

32
00:01:39,740 --> 00:01:41,210
And as I mentioned earlier,

33
00:01:41,210 --> 00:01:49,000
you'll be using these things all the time in PowerShell, so it's important that you understand how to work with them.

