Prof. Powershell  This Match Has No Equal: Comparison Operators
Working with the -eq, -match, and -like comparison operators in
PowerShell.  In this week's lesson I want to cover something I
see frequently in forums and blogs, especially from people just
getting started with PowerShell or coming from a VBScript
background: comparison operators. Specifically, I want to look
at when to use -EQ and when to use -Match or -Like.  First, the
most important thing to realize about comparison operators is
that they will return True or False:  PS C:\> 5 -eq 5  The -eq
operator used to test if something equals something. In this
case 5=5 so PowerShell returned True. The inverse is the -ne
operator:  PS C:\> 5 -ne 5  You can also use -eq with strings.
By default it is not case sensitive:  PS C:\> "jeff" -eq "JEFF"
This works just fine for simple comparisons:  PS C:\> get-
process | where {$ -eq "microsoft corp."}      575     26 11336
18864    88   0.25 2148 MSOIDSVC      74      7  2952  5288
   35   0.03 2312 MSOIDSVC