PowerShell: Automating Administrative Tasks
by Michael Shepard, Chendrayan Venkatesan, Sherif Talaat, Brenton J.W. Blawat
Summary
This chapter explored the many methods with which you can use PowerShell operators. You started by learning the comparison operator basics. You then learned about the equal and not equal and greater than and less than comparison operators. You learned that you can use these operators to compare numbers, strings, dates, and times. You then proceeded to explore the -contains, -like, and -match operators. You learned that you can add not to these operators to create the inverse of the operator. You also understood that you can add c for case sensitivity and i for case insensitivity to the comparison operators. You also saw how to join multiple operators using the -and / -or operators.
The chapter ends by providing the best practices for the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access