Hello everyone, and welcome back to the next lesson in
Learning the PowerShell Language.
In this lesson,
we're going to look how to work with the common PowerShell
operators. In PowerShell, it's really all about doing. You're
either getting something or setting something or removing
something or comparing something.
And for these operations, we need operators. Learning the
operators are a critical part of the PowerShell language. This is
how you're going to connect things together.
Obviously, you can use these operators interactively at the
console, and when you get to PowerShell scripting,
you will continue to use PowerShell operators.
Now the operators I'm going to show you really are
very basic and really simple to use.
There's really nothing complicated here.
I do encourage you to read the help documentation. There are a
number of about_ something operators. So you can just use a
wildcard search, and you can see all of them.
And many of the operators will work also in Windows PowerShell 5.1.
In fact, I'm expecting a number of you may have some
Windows PowerShell experience,
so I don't think these operators will be new to you.
There are some new operators in PowerShell 7 we'll get
to, but really, for the most part,
everything I'm going to show should also work in Windows
PowerShell 5.1. Now the operators, as I mentioned,
are really quite simple. It's nothing complicated here.
This module is more of me going through and at least
illustrating these operators and showing you how they work.
Demonstrations really are very simple.
In fact,
I'm not going to do any live demonstration as I normally do. I'm
going to do everything here in the slides.
However,
all of the code that I'm using in my slides to demonstrate these
operators is also available in the course downloads. So you can grab those downloads and try these things out on your own.