Search For A Solution!

Total Pageviews

Wednesday, July 22, 2015

Windows: Force a service to stop (in starting or stopping state)!

1. Open as admin a CMD window.

See example below to stop hanging Backup Exec Server

Type

sc queryex BackupExecRPCService

<Enter>


Note the PID of this service and replace the word PID below with the number you got...

taskkill /f /pid PID

<Enter>


To find PID of all of your services on your PC/Server:


Type (pipe before more)

sc queryex |more

Also to kill an app and all childs:
TASKKILL /F /IM appname.exe /T

No comments:

Post a Comment