Edit windows service to log on as specific user using a batch script

Solution 1:

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

hope it helps.