Page 1 of 1 1
Topic Options
#11934 - 2001-08-28 09:01 PM Querying Services
slimshady Offline
Fresh Scripter

Registered: 2001-05-16
Posts: 11
Loc: Massachusetts - USA
I need to query a particular service to
see if it's running.
All I want to do is set a variable if it's
running or not.
The closest code I can find is VB code.
(see article Q189633 @support.microsoft.com)
It accomplishes too much. I'd rather use kix.
Does anyone have kix code that accomplishes
this?
Respond to szufnarj@tycoelectronics.com

Top
#11935 - 2001-08-28 09:04 PM Re: Querying Services
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
I don't have the code for you, but the utility is XNET which come with KiXtart v3.63

This is free, or the Windows NT/2000 Resource Kit has utilities for this also.

You can write code to automate them.

Top
#11936 - 2001-08-28 10:35 PM Re: Querying Services
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=002122 or search the BB for 'service start'

Jens

_________________________
There are two types of vessels, submarines and targets.

Top
#11937 - 2001-08-28 11:44 PM Re: Querying Services
Anonymous
Unregistered


You can use Kix2001 to query the services on a remote NT box. It is not easy though.

Look at this thread:

ADSI - Services

Top
#11938 - 2001-08-28 11:51 PM Re: Querying Services
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Mark,

just as a heads up, that link is using kix3.63

Aside from that... yea you can use ADSI to do the queries by using COM objects...... the down side is that ADSI needs to be installed on NT computers in order to use it (i am working on this for a seperate project).

if you want to go this route... lets get the COM/OLE MAN in here....

(bryce turns on the "COM/OLE signal".... you can see its image for miles, shinning in the night sky!)

Bryce

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.055 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org