Kill windows service from cmd


1. Find the process ID of needed Service

sc queryex "Service_name"

sc queryex "OracleServiceORCL"

You got the PID of the Service.


2. Kill the PID

taskkill /PID process_id /F

taskkill /PID 1122 /F