Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    NET is not just for service related functions whilst SC is just for service related functions. Commented Jul 4, 2012 at 16:59
  • 3
    This answer is better because "net" command blocks and wait for the service to start or stop before the batch script continues executing. Commented Mar 17, 2016 at 12:05
  • 1
    Since (as the Edit says) most of the time the errorlevel returned is 2, see here how to interpret the error result. Commented Mar 27, 2020 at 11:04