Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Determine what Services are Dependent on a Specific Service

Keywords: 	 services are dependent on a specific service  wntSvcConfigGet

Question:

I know that there is a way to find the services that must be started before another service is started. I wonder if anyone has a way to find what services are dependent on a specific service. I am needing to stop some services and want to be sure to stop the services that depend on them first so that I can ensure a clean shutdown.

Does anyone have an idea as to how I might accomplish this dynamically without having to list all of the services?

Answer:

Well the wntSvcConfigGet will give you the dependencies of a service.

They you have to check the dependencies of those services.

Sounds like a recursive UDF to me.