Kuhnline.com Web Hosting, Email Hosting, Web Design

How to Kill a Windows NT Service that hangs on Starting or Stopping

  1. Go to the command-prompt and query the service (e.g. the SMTP service) by using sc:

    sc queryex SMTPSvc
  2. This will give you the following information:

            TYPE               : 20  WIN32_SHARE_PROCESS
            STATE              : 4  RUNNING
                                    (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
            PID                : 388
            FLAGS              :

    or something like this (the "state" will mention stopping).
  3. Over here you can find the process identifier (PID), so it's pretty easy to kill the associated process either by using the task manager or by using taskkill:

    taskkill /PID 388 /F

    where the /F flag is needed to force the process kill (first try without the flag).

Last Updated: 2/14/2006

back to top

Kuhnline.com - Web Hosting - Email Hosting - Web Design - Network Consulting - Serving San Francisco and the entire Bay Area.

Get your computer fixed fast!  Download the Remote Support Tool Here.

Questions or comments? Contact us at info@kuhnline.com
Copyright ©2006 Kuhnline.com All rights reserved.

This website is powered by Weblodge.