Friday, August 6, 2010

Problem in changing Logon Credentials of service

Hi, often in our installer products we need to install windows service. Sometimes requirement is such that user need to give input to the installer that whether he needs to install the services on behalf of 'Local Account' or custom user account.

There is no issue till we use 'Local Account' for running the services. But the moment we go for custom account, issues start coming on different machines regarding login credentials failure for the installed services.

For this scenario, there is an easy way-out. :)

Please note that service user we are going to use for services should have Log on as a service right. To perform these, there are some simple steps to follow:


Following are the steps to check
1. Start - Run - secpol.msc
2. Local Policies - User Rights Assignment - Log on as a service


Add User to it. And have fun with your services. :)

No comments:

Post a Comment