[Inquiry]: Optimal approach for monitoring Windows services

Hi everyone, Good day!

I do wanted to know your suggestions about my use case below. I’m planning to create a PowerShell script that gets the latest status of a certain service inside the server.

I’m planning to use the following steps:

  1. for loop in retrieving the service status
  2. generate a csv file or text file to display the status
  3. Create a task in the task scheduler

I don’t have issues in creating the script, however, I’m planning to run it every 30 seconds in the server so that we’ll be able to retrieve the latest data.

Do you have any recommendations aside from this approach to achieve my use case?

submitted by /u/mdennis07
[link] [comments]

Leave a Reply