Link to home
Start Free TrialLog in
Avatar of Retrovertigo
Retrovertigo

asked on

Script to configure an existing service to run with a different account

Does anyone have a script that will configure an existing service running on a PC to use a different user account other than the local system account? Here is an example to put it into context:

SERVER1 (Windows Server 2003) currently has a Service running called 'Service1' which is running as the "log on as" user account of local system. This Service needs to be reconfigured so that the "log on as" user account is 'srvrun@domain.com' with the password of 'password'.
Avatar of merowinger
merowinger
Flag of Germany image

dont think thats possible!
But u can start the service with specified credentials!

runas /user yourdomain\youraccount net start messenger
note the differences between starting a service and running a service!
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial