Windows: Service Managing Through Command Line

Contributor Icon Contributed by jafiz Date Icon April 22, 2005  
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

Previous recipe | Next recipe |
 
  • Vampire
    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 <ServiceName> ,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.
  • Alan
    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.
  • suneel kumar
    Hi,
    How to check the status of the complete services available and also command for an individual service.
  • Nin
    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.
  • Nin
    My fault. Typo. This DID work: NET START "My Server Name Server"
  • vikas sharma
    I wanted to disable Windows update utility from command line. can you please help me on this?

    -Vikas
  • vikas sharma
    I wanted to disable Windows update from command line. can you please help me on this?
  • MarcC
    sc config servicename start=disabled

    For the details, have a look at http://www.windows-commandline.com/2009/06/cont...
  • Kelly
    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.
blog comments powered by Disqus