I am using Service.Create and providing a value for ServiceStartName and Password. The credentials entered were for our admin account, it created the service successfully, but would not start.
The user we install as must have the Log On as User right granted on the local machine for it to work. If you add the user through the log on tab of the service properties, it automatically grants this privilege for you. If you install a service any other way or set the log on user programmatically, this is not done.
Is there a way in Setup Factory to grant this privilege, SeServiceLogonRight, and/or is there a way to see whether this privilege has been granted for this user?
.. Here is the MSDN info for the privileges:
http://msdn.microsoft.com/en-us/libr.../bb545671.aspx and http://msdn.microsoft.com/en-us/libr.../bb530716.aspx
The user we install as must have the Log On as User right granted on the local machine for it to work. If you add the user through the log on tab of the service properties, it automatically grants this privilege for you. If you install a service any other way or set the log on user programmatically, this is not done.
Is there a way in Setup Factory to grant this privilege, SeServiceLogonRight, and/or is there a way to see whether this privilege has been granted for this user?
.. Here is the MSDN info for the privileges:
http://msdn.microsoft.com/en-us/libr.../bb545671.aspx and http://msdn.microsoft.com/en-us/libr.../bb530716.aspx
Comment