Tip: You can compare two strings case sensitive
1 2 3 4 5 |
# Operator -ceq 'Hello' -ceq 'HELLO' # Compare method [string]::Compare('Hello', 'HELLO', $false) |
The overload definitions for the compare method :
String.Compare Method
https://docs.microsoft.com/en-us/dotnet/api/system.string.compare