Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2005

Tip: Looking for answers? Try searching our database.

How to grant LogOnAsService during install?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mdb - 29 Apr 2005 17:34 GMT
I'm using an Installer class to install my windows service.  I want to
configure it to log on as a user.  When I did this, it worked at first, but
after about a day it wouldn't work anymore.  When I try to start the
service it was complaining that it couldn't start due to a logon failure.

I then changed the password in the service configuration (actually I just
typed the same password again since I'm sure it was correct) and it then
said that the account had been granted LogOnAsService rights.  

How can I have the InstallUtil / MSIInstaller grant this right during
installation?

-mdb
Willy Denoyette [MVP] - 30 Apr 2005 12:33 GMT
> I'm using an Installer class to install my windows service.  I want to
> configure it to log on as a user.  When I did this, it worked at first,
[quoted text clipped - 10 lines]
>
> -mdb

This is done automatically.
In your service you specifiy the account under wich it will run, when you
specify an account that hasn't this privilege, the installer will grant this
privilege to this account when installing.

Willy.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.