wmic service where name="服务名" get /value | findstr "ProcessId" 

得到服务的PID

taskkill /f /pid PID号