I have this command to create a service:

sc create svnserve binpath="\"C:\Program Files (x86)\Subversion\bin\svnserve.exe\" --service --root C:\SVNRoot" displayname="Subversion" depend=tcpip start=auto obj="NT AUTHORITY\LocalService"

Unfortunately, it seems not to work, even though the syntax is correct. When I run it, I get the usage instructions (which I guess is a way of telling me that I've supplied incorrect arguments, although I have no idea what incorrect argument I might have supplied).

Can anyone help me out of my difficulty? Thanks!

2 Answers 2


Your syntax is actually incorrect, but you'll be forgiven for missing it.

From the help text for sc create:

NOTE: The option name includes the equal sign.

What isn't immediately obvious from this is that the options need to be specified with a space between the option name and the value.



Correct (note the space after =):

displayname= "Subversion"

Your command should work just fine formatted accordingly, i.e.:

sc create svnserve binpath= "\"C:\Program Files (x86)\Subversion\bin\svnserve.exe\" --service --root C:\SVNRoot" displayname= "Subversion" depend= tcpip start= auto obj= "NT AUTHORITY\LocalService"
  • Voted your response as the answer, because it was more detailed. Thanks! Jun 18, 2010 at 17:07
  • This no longer appears to be an issue in windows 10. It appears to work for me, if anyone else wants to verify this. Sep 28, 2016 at 18:57
  • You saved my day!
    – QtRoS
    Jul 5, 2019 at 13:27

you need spaces after =

displayname= "Subversion Server" depend= Tcpip start= auto

  • +1 - The sc syntax confuses first-time users w/ the need for spaces after arguments. Jun 18, 2010 at 11:20
  • 2
    I've been using it for years and it still trips me up occasionally. :-( Jun 18, 2010 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.