Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have several programs that are installed as a service.

By default, after installation, the service runs as Local System Account.

I can change it through services.msc, service properties to the desired account. Is there a way to do the above using a script ?

share|improve this question
    
Found the solution, hope it will hope others. From command line: sc \\server config ServiceName obj= Domain\user password= pass –  Ofiris Aug 28 '12 at 20:24
1  
Please post your solution as an answer, so that you can accept it and close the question. –  user3463 Aug 29 '12 at 3:53

1 Answer 1

up vote 2 down vote accepted
sc \\server config ServiceName obj= Domain\user password= pass

hope it helps.

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.