How can this problem be solved?

I know there is a sc utility, but I don't know how to assign the Local Service account to the obj parameter (because of the spaces in the name), and how to assign a blank password (I assume Local Service account has a blank password) to the password parameter.

link|improve this question
What version of Windows is this? – uSlackr Jun 8 '11 at 13:06
I'm testing this on Win7 but it should apply to XP as well and corresponding server versions – alh84001 Jun 8 '11 at 13:09
feedback

1 Answer

up vote 0 down vote accepted

This should work: SC CONFIG MyService binPath=c:\myprogram.exe obj=".\LocalSystem" password=""

link|improve this answer
Look at some of the examples here: ss64.com/nt/sc.html – Chris N Jun 8 '11 at 13:16
Thank you. I took that last example, and played with it and finally got it to work with SC.EXE CONFIG MyServiceName obj= "\Local Service" password= "" – alh84001 Jun 8 '11 at 15:09
feedback

Your Answer

 
or
required, but never shown

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