All Products
Search
Document Center

Elastic Compute Service:What do I do if a service cannot be manually started on a Windows instance?

Last Updated:Apr 21, 2023

This topic describes the cause of and solution to the following issue: A service cannot be manually started on a Windows instance.

Issue description

When you run the net start command in Command Prompt to start a service on a Windows instance, the service cannot be started and a message similar to "The service is being started or stopped. Try again later" is displayed.

Solution

  1. Connect to the Windows instance.

    For more information, see Connect to a Windows instance by using a password.

  2. Right-click the Start icon, select Run, enter services.msc, and then click OK. The Services window appears.

  3. Find the service that you want to start and obtain the service name.

  4. Start Command Prompt and run the following command to obtain the process ID (PID) of the service:

    sc queryex <$Service_Name>
    Note

    Set <$Service_Name> to the service name that you obtained in the previous step.

  5. Run the following command to stop the process of the service.

    taskkill /f /pid <$PID>
    Note

    Set <$PID> to the PID that you obtained in the previous step.

  6. Restart the service.