Services matching a string
Modified on 2025-06-10 20:34:41 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
I am after a script that can look for all services on a Windows server that match a string, like 'websiteapi_' and effectively alert when they are down.
This would need to ignore services that are disabled.
I would settle for a script that just returned a list of those not running and alerted if any results are returned.
Any ideas?
Article Comments
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hi Adrian,
I found a KB article that has a script which does something similar, maybe that will help: https://helpdesk.paessler.com/en/support/solutions/articles/760000652107-monitoring-multiple-services-using-one-powershell-script
Kind regards,
Sasa Ignjatovic, Tech Support Team
Dec, 2021 - Permalink