7

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 ?

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

1 Answer 1

7
sc \\server config ServiceName obj= Domain\user password= pass

hope it helps.

You must log in to answer this question.

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