# kill windows service stuck at stopping

- Link: https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/
- Published: 2020-06-14T20:57:07+05:30
- Author: Deviprasad Panda

Every infracture admin need to know the steps to force stop or kill windows service
stuck at stopping by pid using taskkill or powershell. Think about a situation, 
you are trying to stop a windows service but its stuck at stopping status. Means
service stopping hung and not responding. In this case we need to force kill windows
service either by using taskkill in command line (cmd) or by powershell. Follow 
the step by step commands to apply in cmd for force stop service windows server.

 Advertisements

Run command prompt as an administrator and type [taskkill help command](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill)
as below. That will display parameter list like /S, /U, /P, [/FI](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill),
[/PID](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill),/
IM, /T, [/F](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill),/?
and why these are used. You will find these parameters in the commands below.

 Advertisements

## kill windows service command line

    ```wp-block-code
    taskkill /?
    ```

![kill windows service using taskkill windows command line](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/f8c32-kill-service-using-taskkill-windows-command-
line.jpg?resize=584%2C606&ssl=1)

kill windows service using taskkill windows command line

 Advertisements

![kill process id using taskkill windows command line](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/c007d-kill-process-id-using-taskkill-windows-command-
line.jpg?resize=584%2C573&ssl=1)

kill process id using taskkill windows command line

 Advertisements

First step is to identify the “Service name” of windows service stuck at stopping.
Let’s say windows update [service ](https://sharepointtechnicalsupport.com/category/sharepoint-services/)
stuck at stopping, then right click on the service and click on properties will 
show you the service name “wuauserv”. Alterenatively, you can run powershell command“
[Get-Service](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7)”
to get windows service details. Run the below command in command prompt to get the
PID of service.

    ```wp-block-code
    sc queryex <service name>
    sc queryex wuauserv
    ```

![windows service properties service  name](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/72f57-windows-service-properties-service-name.jpg?
resize=584%2C399&ssl=1)

windows service properties service name

 Advertisements

![sc queryex wuauserv](https://i0.wp.com/sharepointtechnicalsupport.com/wp-content/
uploads/2025/06/1c6b2-sc-queryex-wuauserv.jpg?resize=584%2C233&ssl=1)

sc queryex wuauserv

You can check the PID in “Task manager” under the the tab “Services”.

![PID in Task manager](https://i0.wp.com/sharepointtechnicalsupport.com/wp-content/
uploads/2025/06/8635c-pid-in-task-manager.jpg?resize=584%2C368&ssl=1)

PID in Task manager

 Advertisements

Next step is to kill windows service PID running below cmd in command prompt.

    ```wp-block-code
    taskkill /f /pid [PID]
    taskkill /f /pid 996
    ```

![taskkill /f /pid](https://i0.wp.com/sharepointtechnicalsupport.com/wp-content/
uploads/2025/06/ea6fe-taskkill-f-pid.jpg?resize=584%2C270&ssl=1)

taskkill /f /pid

 Advertisements

You will find the service is stopped after applying the command above. You can disable
the serivce else apply the state as per your requirement.

![windows update service stopped how to disable](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/c273b-windows-update-service-stopped-how-to-disable.
jpg?resize=584%2C318&ssl=1)

windows update service stopped how to disable

 Advertisements

You can kill processes from command prompt without knowing the PID by running the
below command.

    ```wp-block-code
    taskkill /F /FI "SERVICES eq wuauserv"
    ```

![taskkill /F /FI "SERVICES eq wuauserv"](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/b9230-taskkill-f-fi-services-eq-wuauserv.jpg?resize
=584%2C88&ssl=1)

taskkill /F /FI “SERVICES eq wuauserv”

 Advertisements

You can force stop a service running with particular user id using below cmd.

    ```wp-block-code
    taskkill /F /FI "USERNAME eq Deviprasad"
    ```

cmd to task kill all windows services not respnding running as below.

    ```wp-block-code
    taskkill /F /FI "status eq not responding"
    ```

 Advertisements

You can kill services consuming more then a limit of memory usage following the 
command below.

    ```wp-block-code
    taskkill /FI "memusage gt value"
    taskkill /FI "memusage gt 220600"
    ```

![kill pid memusage gt](https://i0.wp.com/sharepointtechnicalsupport.com/wp-content/
uploads/2025/06/bc3db-kill-pid-memusage-gt.jpg?resize=584%2C153&ssl=1)

kill pid memusage gt

![kill service memusage gt](https://i0.wp.com/sharepointtechnicalsupport.com/wp-
content/uploads/2025/06/1b916-kill-service-memusage-gt.jpg?resize=584%2C171&ssl=
1)

kill service memusage gt

 Advertisements

Run the cmd as below to get list of tasks running in server.

    ```wp-block-code
    tasklist
    ```

![tasklist](https://i0.wp.com/sharepointtechnicalsupport.com/wp-content/uploads/
2025/06/a577a-tasklist.jpg?resize=584%2C565&ssl=1)

tasklist

 Advertisements

we can run the below cmd to kill task running in the server.

    ```wp-block-code
    taskkill /F /IM taskmgr.exe
    ```

![taskkill /F /IM taskmgr.exe](https://i0.wp.com/sharepointtechnicalsupport.com/
wp-content/uploads/2025/06/0acfe-taskkill-f-im-iexplorer.jpg?resize=584%2C152&ssl
=1)

taskkill /F /IM taskmgr.exe

 Advertisements

## End task using powershell

 We can use below powershell commands to kill windows service.

    ```wp-block-code
    Stop-Process -ID ProcessID - Force
    Stop-Process -ID 6196 - Force
    ```

    ```wp-block-code
    Stop-Process -Name ProcessName -Force
    Stop-Process -Name iexplorer -Force
    ```

![kill service or pid usinf powershell](https://i0.wp.com/sharepointtechnicalsupport.
com/wp-content/uploads/2025/06/8962b-kill-service-or-pid-usinf-powershell.jpg?resize
=584%2C315&ssl=1)

kill service or pid usinf powershell

 Advertisements

powershell command to force kill services not responding.

    ```wp-block-code
    Get-WmiObject -Class win32_service | Where-Object {$_.state -eq 'stop pending'}
    ```

 Advertisements

Watch the video to get details step by step for better understanding.

 Advertisements

### Share this:

 * [  X ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=twitter)
 * [  Facebook ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=facebook)
 * [  WhatsApp ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=jetpack-whatsapp)
 * [  Email ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?subject=%5BShared%20Post%5D%20kill%20windows%20service%20stuck%20at%20stopping&body=https%3A%2F%2Fsharepointtechnicalsupport.com%2F2020%2F06%2F14%2Fkill-windows-service-stuck-at-stopping%2F&share=email)
 * [  Telegram ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=telegram)
 * [  LinkedIn ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=linkedin)
 * [  Tumblr ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=tumblr)
 * [  Pinterest ](https://sharepointtechnicalsupport.com/2020/06/14/kill-windows-service-stuck-at-stopping/?share=pinterest)

### Like this:

Like Loading…

### _Related_
