Windows 10 Running a program on service failure - pass service name

  • Thread starter Thread starter gilt111
  • Start date Start date
G

gilt111

Guest
Hello,

i want to create a generic script (batch or Powershell) that will run on service failure.

the same script will be configured on a few services and i want it the accept the name of the service that failed.

how can i get the name of the failed service in the script i'm running on failure?

More...
 
Back
Top