How do i use the NotifyServiceStatusChange scripting to send an email when specific services change states?

william howard 0 Reputation points
2023-02-15T20:02:59.62+00:00

I'm trying to set up a scripting function I found at ( https://learn.microsoft.com/en-us/windows/win32/api/winsvc/nf-winsvc-notifyservicestatuschangea ) I believe it is used to send a notification when a specified Services changes to ether a specified stat or if it changes from its current state. I am manly a plc programmer so this is all new to me but i was hoping that this function could be used to send out and email notification to me and some colleges to notify us if are SQL server and some other programs go offline unexpectedly.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
870 questions
0 comments No comments
{count} votes