Does someone have a sample script I could use to run on my network to see if
a specific service is running? It is actually for remote computers so I
would need to be able to define an ip address range to scan the entire
range. I would like to be able to log it to a file.

Re: script to see if service is running by Torgeir

Torgeir
Wed Aug 27 13:37:14 CDT 2003

Melanie wrote:

> Does someone have a sample script I could use to run on my network to see if
> a specific service is running? It is actually for remote computers so I
> would need to be able to define an ip address range to scan the entire
> range. I would like to be able to log it to a file.

Hi

Some starting points:

In the link below is a script that reads server names from servers.txt, and for
each server compares running services with a list of services (the service name)
from the file services.txt.
Connection errors and the status of the services (Running/Not started) are
reported in the file StatusServices.txt.

Subject: Re: Do you have a script to check if an NT service is present on a
machine
http://groups.google.com/groups?selm=3D8F5402.AB59D491%40hydro.com


A couple of other services check examples:

Subject: Re: Check state of services
http://groups.google.com/groups?selm=3E83986E.9EEE0304%40hydro.com

Subject: Re: VBS - Services Running? - Please help.
http://groups.google.com/groups?selm=3E84D2AC.4496450D%40hydro.com


IP range example:

Subject: Re: Ping IP ranges
http://groups.google.com/groups?selm=%23x3d%23nCaDHA.2648%40TK2MSFTNGP09.phx.gbl

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter