sc query alerter | findstr /i "STATE"
STATE : 1 STOPPED
Can probably do this with a batch file with the servers to check echoed and
then the services you want to check. Probably be easier to buy a cheap tool and
set up the alerts to email you when things are up down..
Z
Edward E. Ziots
Senior Informational Security Engineer
CISSP,Security +,Network+
Date: Thu, 16 Feb 2012 10:12:55 -0500
Subject: Re: utility to output service status
From: [email protected]
To: [email protected]
to be clear, not wanting a list of ALL services running, we want to provide a
short list of services we want to check, hopefully with simple output like :
service1 - running
service2 - stopped
service3 - paused
service4 - running
On Thu, Feb 16, 2012 at 10:09 AM, Erik Goldoff <[email protected]> wrote:
Looking to run a batch/command on a series of servers, with the goal of a
simple text file listing the service name and status (running/paused/stopped)
to be emailed to a monitoring mailbox via scheduled task.
PSService and SC seem a bit too verbose for this simple output, wondering if
anyone has a favorite utility that might fit this need.
Thanks in advance,
Erik
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin