Click to See Complete Forum and Search --> : Stopping InetInfo.exe forcibly...


gopich
January 24th, 2003, 06:01 AM
My requirement:
At times our webserver, which is dependent upon IIS Server(inetinfo.exe) is hanging and so we are trying to restart it using "Control panel->Services" applet. But we are unable to do so.

Another point: If the machine on which I want to stop IIS Server has MSDEV, I can do as follows:
Go to Task Mgr & Select processes tab.
Select inetinfo.exe and then "do right mouse click to get Debug option". If you select debug option, inetinfo will be attached to the debugger of Visual Studio, so it is easy to kill that process by pressing ****+F5 in the debugger. But the real problem is: I don't have Visual Studio installed on our machine(as it is meant to be deployed on field).

Could anybody help me out?

Thanks,
Gopi

dimm_coder
January 24th, 2003, 06:43 AM
I haven't understand what U want.
Do U want to restart it simply? Why are U use
VC++ debugger for process killing? Does TaskManager not provide rights to kill it simply? If so U need another "task manager" to do this, because it is possible to get "debug privileges" for process and then to kill every process (even winlogon and etc.)

gopich
January 24th, 2003, 07:56 AM
>I haven't understand what U want.
>Do U want to restart it simply? Why are U use
>VC++ debugger for process killing? Does TaskManager not >provide rights to kill it simply? If so U need another "task >manager" to do this, because it is possible to get "debug >privileges" for process and then to kill every process (even >winlogon and etc.)


Yes I just want to restart it simply.


>Does TaskManager not >provide rights to kill it simply?
No, it does not let me kill inetinfo.exe from Task Manager saying "Access Denied". But it does let me kill "notepad.exe"

Anyway looks like by using the AdjustTokenPrivileges() API, one can write a utility to kill any process(after knowing its Process ID from the Task Manager). The required privilege is SE_DEBUG_NAME.

Sorry for not being very clear.

Regards,
Gopi

mwilliamson
January 24th, 2003, 10:41 AM
There is an example of ending services here in the system section.