Send an email whena service is stoppped/Started

0

I have a requirement where I need to stop a service on a schedule.

So I created a simple bat file which starts and stops the service using Net STOP /Start command, which I schedule using the windows task scheduler

I need that if a service is stopped and email is sent to me and similary an email should be send when the service is started.

Any ideas?

regards, Ritesh

user389831

Posted 2014-11-14T12:16:53.090

Reputation: 1

Question was closed 2014-11-17T13:12:10.527

Windows by default does not have this capability. You can write a service that handles this for you though. – Ramhound – 2014-11-14T12:20:56.627

Alritey - Thanks for your replies guyz ! – user389831 – 2014-11-17T05:48:43.617

No answers