Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|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

2 Answers 2

up vote 0 down vote accepted

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

share|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

Regarding previous comment, be aware that Local System and Local Service is not the same account. Local Service has much less rights.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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