how to send an email if a service stops

Ale Madama 291 Reputation points
2021-04-15T17:50:02.393+00:00

Hi all,

I have a remote PC and I would like to be alerted if a service of this remote PC stop running or even, in general, if this remote PC is approaching to reboot...

is there a way for doing that?

What I need is some way to catch/capture the event "the service X has stopped", and after to run some action (sending email for example)

thanks!

Ale

Windows development Windows API - Win32
0 comments No comments
{count} votes

Accepted answer
  1. Olaf Helper 47,436 Reputation points
    2021-04-16T10:58:04.477+00:00

    What I need is some way to catch/capture the event "the service X has stopped"

    Would be a PowerShell solution OK?
    => How to Monitor Windows Services via Powershell & Alert if Down/Up!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ale Madama 291 Reputation points
    2021-04-16T11:00:04.967+00:00

    Hi Olaf and thank you for your suggestion!

    yes sure, powershell it would be great!

    I'll have a look and let you know the results

    thank you!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.