taskkill /F /IM telecom.exe and taskkill /F /PID 1234. Either one of the two commands (taskkill /F /IM telecom.exe or taskkill /F /PID 1234) will work in this scenario. The /IM option identifies the image name of the process to halt, while the /PID identifies the process ID number of the process to halt. Because the service’s process is hung badly, the /F option must be used with the command to forcefully terminate the process.