My service does not start on Windows 2008 (it works on Windows 2003)

Posted by akirekadu on Stack Overflow See other posts from Stack Overflow or by akirekadu
Published on 2010-03-04T00:47:25Z Indexed on 2010/03/25 23:13 UTC
Read the original article Hit count: 378

When we install our product on Windows 2008 SP2, couple of services fail to start. After trying different things, we figured out that these service were able to start when "Log on as" is set to "Local system account".

This service does need to run as a specific user because it requires access to secure resources. The service did run just fine under this special user account under Windows 2003. I am thinking the problem is related to UAC (user access control).

Under interactive mode one can elevate permission by answering the security dialog box. How to do the same for a service? How to configure the service so it runs with necessary permissions?

Thanks!

Couple of notes I would like to add. One solution I tried is to execute the installer as administrator. The service does get installed. However, it creates another problem. An embedded 3rd party product and its files get installed with admin only rights. So we do need to run the installer as logged in user.

© Stack Overflow or respective owner

Related posts about windows2008

Related posts about windows-server-2008