Powershell Tutorial Online

Powershell Select String

See without the CaseSensitive parameter, Select-String would recognize both of the strings as matches.

        PS C:\> "Hello","HELLO" | select-string -pattern "HELLO" 

        PS C:\> "Hello","HELLO" | select-string -pattern "HELLO"  -casesensitive

Using select string we can get event log

$events = get-eventlog -logname application -newest 100
$events | select-string -inputobject {$_.message} -pattern "failed"

It depends on the if your allowed to see the event log or see you get following message.