Link to home
Start Free TrialLog in
Avatar of Zinvob
ZinvobFlag for Norway

asked on

Telephony service hangs, how do I kill it?

I have a problem with my GPRS modem. Sometimes the telephony service hangs, and I have to restart the computer. I want to kill this service without restarting. The problem is that this program is running inside one of the svchost processes, so it's not so easy to kill without killing something else too.

I've tried "net stop", but the service is not responding, trying to shut it down inside services.msc is just the same.

Does anyone here know some api calls, or some tools to kill this service, and this service only?
Avatar of jrgn
jrgn

There is tool called kill which you can use to kill een process using it's procesid. It is is a resourcekit tool but if you use google you can also find it.
it is used kill -f procesid

Cheers,

Jurgen
Avatar of Zinvob

ASKER

As I stated, it's running inside the svchost process, so the only thing I could kill this way is the svchost process. And I don't want to do this, as there are other services also running inside the same process.
You can try  the Advanced Process Manipulator
http://www.diamondcs.com.au/index.php?page=apm
Avatar of Zinvob

ASKER

Does anyone know how to use api calls to get the same effect as "tasklist /svc"?
Avatar of Zinvob

ASKER

Tried to unload the tapisrv.dll, but then the whole system got unstable, so this was no good idea :)

But I found another method:
taskkill /FI "SERVICES eq TapiSrv" /F

Kills only the svchost process that contains the telephony service (TapiSrv). Still I would like to kill only a little part of the process instead of everything. Because now I have to restart all the other services inside that svchost also. And to do that I have to first go through all services before executing the taskkill, and after killing the svchost I have to restore the state of those that have changed.

Is there a way to do this easy?
Avatar of Zinvob

ASKER

Solution is as follows (in easier terms):

First I loop through all services, recording their state (loaded/not loaded).
execute: taskkill /FI "SERVICES eq TapiSrv" /F
Loop through all services, restoring state for those who have changed.

ASKER CERTIFIED SOLUTION
Avatar of CetusMOD
CetusMOD
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial