4

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 ?

  • 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
4
sc \\server config ServiceName obj= Domain\user password= pass

hope it helps.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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