Re: service state across servers
- From: Babu VT <babuvt@xxxxxxxxxxxxx>
- Date: Thu, 03 Aug 2006 22:51:32 +0530
Hi
Try this out..may be need to do it in a loop for multiple computers
Set objComputer = GetObject("WinNT://winxp,computer")
Set objService = objCOmputer.GetObject("service", "Bonjour Service")
Select Case objService.Status
Case 1
wscript.echo "stopped"
Case 2
wscript.echo "start pending"
Case 3
wscript.echo "stop pending"
Case 4
wscript.echo "running"
Case 5
wscript.echo "continue_poending"
Case 6
wscript.echo "pause_pending"
Case 7
wscript.echo "paused"
Case 8
wscript.echo "Error"
End Select
rgds
Babu
balta expressed precisely :
Suppose that a service is installed on various servers and I want to be able to check, at any time, on which servers it is running an don which it is stopped.
Is there a script that allows me to achieve that?
The script in question is the monitoring tool Radar and it runs on 26 servers, so such a script would be of tremendous help.
I am new to Windows scripting so any feedback or starting point would be welcome
Thanks!
.
- Prev by Date: Re: CMD.EXE and ">> logfile"
- Next by Date: Re: Get "DisplayName" from SQL table and add to Exchange DL
- Previous by thread: CMD.EXE and ">> logfile"
- Next by thread: Re: service state across servers
- Index(es):
Relevant Pages
|