Windows: Service Managing Through Command Line

Contributor Icon Contributed by jafiz  
Tag Icon Tagged: Windows networking  

How can I start/stop/pause Windows Services from command Line in win-2000,Win-XP & win-2003


To start a service follow the steps:

1. Go to START—->RUN

2. Type CMD—–> Click on Enter

3. Net Start to Start a Service
Eg:- net start telnet

4. Net Stop to Stop a Service
Eg:- net stop telnet

5. Net Pause to Pause a Service
Eg:- net pause telnet

6. Net Continue to Continue a Service
Eg:- net continue telnet

For more detail contact me at getjafiz@gmail.com

 

13 Comments -


  1. Vampire said on October 7, 2008

    Thanks for the post.
    I have few questions, and eagerly urge you all for response .
    1.But how to RESTART the Services ,because its not possible to learn about the service whether its in STOP mode or not using NET START /NET STOP.
    2. Whenever I issue NET STOP ,it prompts for yes/no for all the services. How can I say yes to all the dependent services..as i will not have provision if i execute a batch file in scheduled tasks.

    Thanks in Advance.
    Vampire.

  2. Alan said on October 17, 2008

    net stop servicename /y will suppress prompts. You can also check the return code of the net stop and net start commands. If the command fails, because it is already started or stopped, you get a return code.

  3. suneel kumar said on May 26, 2009

    Hi,
    How to check the status of the complete services available and also command for an individual service.

  4. Nin said on July 1, 2009

    But how to figure out the “Service Name”. The Service properties says Service name: My Service Name Server (a 4 word name). I’ve tried NET START My Service Name Server and NET START “My Service Name Server”, but it keeps telling me that the name is invalid.; I then tried the executable name NET START MySvc and NET START MySvc.exe These also failed.

  5. Nin said on July 1, 2009

    My fault. Typo. This DID work: NET START “My Server Name Server”

  6. vikas sharma said on July 7, 2009

    I wanted to disable Windows update utility from command line. can you please help me on this?

    -Vikas

  7. vikas sharma said on July 7, 2009

    I wanted to disable Windows update from command line. can you please help me on this?

  8. MarcC said on August 20, 2009

    sc config servicename start=disabled

    For the details, have a look at http://www.windows-commandline.com/2009/06/controlling-services-from-command-line.html

  9. Kelly said on November 6, 2009

    How can I change a service properties through either command line or through scripting (java or sql )?
    I basically wants to change the services –> properties –> Log On as (from Local system account to “This Account”).

    Thanks for the help.

  10. Anonymous said on March 24, 2010

    How can the same be done in Windows 07 in cmd prompt?

  11. Srini said on July 14, 2010

    this has not changed in windows 7, it’s same as xp..check the link above posted by MarcC.

  12. Amit said on October 16, 2010

    I would like to know if we can set “Start up Type” for a service from command line..
    Thanks

  13. Wasti777 said on July 26, 2011

    How will i start/stop the service on remote computer from command line?

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -