Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Please post your solution as an answer, so that you can accept it and close the question. – user3463 Aug 29 '12 at 3:53
up vote 3 down vote accepted
sc \\server config ServiceName obj= Domain\user password= pass

hope it helps.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .