
Last week I worked on a Scorch PowerShell script that is looking for duplicate Incident Requests inside SCSM by checking new incoming request and existing ticket already in the system.
One of the script step is to look for a match between two strings, something similar to the following:
$String1 = "Title:[PowerShell Rocks!]" $String2 = "Title:[PowerShell Rocks!]" $String1 -match $String2
Straight forward you would think! And at first I was surprised to see the result $FALSE ... yep...to "ass-u-me"...