View Full Version : Grant Logon as Service Right

Ideas Man
01-17-2005, 03:42 AM
I've created all the necessary dialogs and stuff to install a service and start it, however, accounts that don't have the Logon as Service right can't start the service and the installer rolls back as a result.

How can I grant this right through the setup routine?

I was searching through all the old posts and I found a link to this page http://www.installsite.org/pages/en/isp_os.htm (Towards the bottom) but I don't understand how to use it. Is there a way to do it using the Windows Installer, or should I use this, and if so, how would I use it? (Yes, i'm new to this whole thing).

01-18-2005, 10:26 AM
I'm not aware of a built-in way to do this; I seem to remember having to write a C++ custom action DLL that uses code similar to this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmgmt/security/managing_account_permissions.asp...

Ideas Man
01-20-2005, 08:42 AM
Mmm, well I solved it by getting the NTRights.exe file from the Windows Server 2003 resource kit, putting it in the support files thing and running it with some VB Script. It seemed like the easiest method at the time, and it worked.

10-07-2011, 05:53 AM
How do I get it to work in Windows XP. ntrights.exe is not present in Windows XP.