Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Check process

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>