Archive: Stopping a service (IISADMIN) with Dependencies


Stopping a service (IISADMIN) with Dependencies
Hi.

I’m trying to use Service Library to stop the IISADMIN service. I SendServiceCommand ‘stop’ and then loop until IsServiceRunning is false – this never happens! I think the problem is IISADMIN has dependencies (which ones seems to vary from machine to machine). How do I overcome this? Is there a way to enumerate the dependencies so I can stop these first? An example please.


I note that SC.EXE has a EnunDepend command, so thinking of do this is a (Jscript) script. Has anyone got such a script?

This is not my area so please, spell it out for me!!

Many thank
Bryan


Did you try one of the other plug-ins? It might be a problem with the Service Library and not the dependencies.