Problems creating service using sc.exe

Solution 1:

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.

Incorrect:

displayname="Subversion"

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"

Solution 2:

you need spaces after =

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