I have a windows service that runs fine, but I have to have it run under a special user account.
Currently I go into services and change the logon as section, but for deployment this has to be done more professionally.
Is there a way for me to have it logon as a custom user account programatically, or during the installation process of the service?
When you open the Service COntrol Manager,(SCM), of course,there is a tab labeled Logon.. In there you can specify which domain or machine account it should run under…
But programatically. if you use a Service Installer class in your code you can specify it there..