Thursday, 7 April 2011

In Windows 2008 server some of the process are not killed properly

I installed my product in Windows 2008 server. Even though   my product's service was stopped , some of   process are not killed properly. so I tried to kill the process with help of task-manager, on that time I got the Access denied error.
So I tried with the command taskkill to kill the process.

In command prompt type taskkill /? ,It will give the usage of the command 

I tired to kill the process using process ID so I used the option /PID

>taskkill /PID  18684

Here 18684 is a process ID of the process.
After executing the command,I got the message like

 "ERROR: The process with PID 18684 could not be terminated.
Reason: This process can only be terminated forcefully ( with /F option ).
"

So I tried the option with /F
>taskkill /PID  18684 /F /T

/T used to kill the child process of the specified process  ID

Now the processes are killed successfully.and I got the success message.

"SUCCESS: The process with PID 18684 has been terminated. "



No comments:

Post a Comment