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 ?

Ofiris
  • 1,927
  • 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
  • 2
    Please post your solution as an answer, so that you can accept it and close the question. –  Aug 29 '12 at 03:53

1 Answers1

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

hope it helps.

Oliver Salzburg
  • 87,539
  • 63
  • 263
  • 308
Ofiris
  • 1,927