DISQUS

Tech-Recipes: Windows: Service Managing Through Command Line | Windows networking | Tech-Recipes

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

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

    For the details, have a look at http://www.windows-commandline.com/2009/06/cont...
  • Kelly · 2 days ago
    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.