View Single Post
Old 04-23-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: Check if service is running on several servers


"Jrex7" <Jrex7@xxxxxx> wrote in message
news:A44A26BF-CCCD-48B4-8931-E2DEDBF18633@xxxxxx
Quote:

>I need help making a script that will check if a service is running on
> several servers. most servers are running Win2000 some are running
> Win2003. I
> have a text file with the list of all the servers I need to check for the
> service.
Here is a simple batch file solution:

@echo off
for /F %%a in (c:\Servers.lst) do sc \\%%a query "Name of Service"


My System SpecsSystem Spec