Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

How to test for a given process every hour?

$
0
0

Task Scheduler could kick off a ps1 script at startup which would continually run an endless loop which would wake up once an hour to call Get-Process. If the process were not found then a Send-MailMessage cmdlet would be fired.

Couldn't find a Watch- type of cmdlet for this but there may be a better way to structure this?


HomeCookN


Viewing all articles
Browse latest Browse all 2562

Trending Articles



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