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'.
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'.
note the differences between starting a service and running a service!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
But u can start the service with specified credentials!
runas /user yourdomain\youraccount net start messenger