Try our new Certificate Revocation List Check Tool
CRLcheck.exe is a tool developed to verify digital signatures of executable files. It collects files from known paths on your client, checks their signature, and checks Certificate Revocation Lists (CRL) and OCSP download. This helps avoid delays in launching files.
Category published:  Deployment Mcafee/Trellix   Click on the Category button to get more articles regarding that product.

Windows Server Service Stuck at Pending (How to Force stop with SC CLI)

Posted by admin on 16.10.2021


Analyzing and Resolving “STOP pending” Status for McAfee Tomcat Service

1. Identify Stuck Service:

– Open Command Prompt with administrative privileges.

– Dump the list of all services to a text file using the command: `sc query > service_list.txt`

2. Inspect Service List:

– Open the generated text file using a text editor like Notepad.

– Look for the McAfee Tomcat service entry. In this example, the service name is `MCAFEETOMCATSRV250`.

3. Investigate Service Status:

– Execute the command: `sc query MCAFEETOMCATSRV250`

– Check the STATE and WIN32_EXIT_CODE to understand the current status and any exit codes associated with the service.

4. Forcefully Stop the Service:

– If the service is stuck in the “STOP pending” state, attempt to forcefully stop it using: `sc stop MCAFEETOMCATSRV250`

5. Check for Dependencies:

– Verify if the McAfee Tomcat service has dependencies. If yes, ensure those services are not in a problematic state.

6. Kill the Process (if needed):

– If the service remains stuck, identify the corresponding process using Task Manager or other monitoring tools.

– Terminate the process associated with the McAfee Tomcat service.


7. Clear Temp Files:

– Navigate to the temporary directory used by the Tomcat service and clean up any temporary files that might be causing issues.


8. Reset Service Configuration:

– Reset the service configuration using the commands:

sc config MCAFEETOMCATSRV250 start= demand

sc config MCAFEETOMCATSRV250 start= auto


9. Restart Service:

– Attempt to start the McAfee Tomcat service again using: `sc start MCAFEETOMCATSRV250`


10. Review Event Viewer Logs:

– Check the Event Viewer logs for any related errors or warnings that might provide additional insights into the issue.


By following these steps, you can systematically troubleshoot and resolve the “STOP pending” status of the McAfee Tomcat service without resorting to a server restart, minimizing downtime and potential disruptions.



1. Query Service:

sc query [service_name]


2. Start Service:

sc start [service_name]


3. Stop Service:

sc stop [service_name]


4. Pause Service:

sc pause [service_name]


5. Continue Service:

sc continue [service_name]


6. Configuring Service:

sc config [service_name] option= value


For example:

– Set service to start automatically:

sc config [service_name] start= auto

– Set service to start manually:

sc config [service_name] start= demand


7. Delete Service:

sc delete [service_name]


8. Description of Service:

sc description [service_name] “Your service description here”


9. Dependencies of Service:

sc qc [service_name]


10. Service Control:

sc [service_name] [command]



– start

– stop

– pause

– continue


11. Display Names of Services:

sc queryex type= service state= all



 Category published:  Deployment Mcafee/Trellix   Click on the Category button to get more articles regarding that product.