Just trying to see if there's a way to check on a process and if the process does not exist, send email alert.
I did search on the forum and came accross this : $ProcessCheck = Get-Process abc -ErrorAction SilentlyContinue
so that if a process is not running, the error will not screw up the script. So question is: how can i test this to see the output of the $ProcessCheck variable when no such process is running ?
cdm