Announcement

Collapse
No announcement yet.

Install as Service

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Install as Service

    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

  • #2
    This article lists several ways to grant that permission
    http://www.morgantechspace.com/2013/...t-to-User.html

    We call ntrights to grant the permission.

    Greg

    Greg

    Comment


    • #3
      Thanks, I'll give it a look and try it out.

      Comment

      Working...
      X