Hello everyone, and welcome back to the next lesson in
Learning the PowerShell Language.
In this lesson,
we're going to look at working with some very common features in
PowerShell and that means working with arrays and hashtable,
these are things that you're going to use all the time and it's very
important that you understand what these things are,
how to create them, how to recognize them, and how to use them.
Alright,
so let's dig in. In PowerShell, we are going to work with arrays and
hashtables very often in PowerShell scripting.
So these are the kind of language elements that you're
going to use really all the time,
so it's important that you master that. However,
we can also use these things, arrays and hashtables, in interactive
console sessions, that is at the PowerShell prompt.
So during your daily work,
if you're running things at a PowerShell prompt to do your job,
you can use arrays and hashtables, in fact,
you'll find that it can make your work a little bit easier by creating an
array of say computer names or creating a hashtable with some custom
properties or parameters that you want to splat.
We'll get to splatting a little bit later.
So these are features, arrays and hashtables I'm talking about, they're not
unique to PowerShell. You will find these features in lots of programming
and scripting languages. Now in VB script, we had arrays and we had
hashtables, also known as a dictionary object.
So there is nothing new here.
If you have done any other sort of scripting or programming,
you should probably be familiar with the concepts that
we're going to look at in this module.
And as I mentioned earlier,
you'll be using these things all the time in PowerShell, so it's important that you understand how to work with them.