DISQUS

DISQUS Hello! Tech-Recipes is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Tech-Recipes

Cookbook of Tech Tutorials
Jump to original thread »
Author

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

Started by qdideas · 9 months ago

No excerpt available. Jump to website »

5 comments

  • 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.
  • 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.
  • Hi,
    How to check the status of the complete services available and also command for an individual service.
  • 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.
  • My fault. Typo. This DID work: NET START "My Server Name Server"

Add New Comment

Returning? Login