[Webinar] Learn how to a build a cloud-first strategyRegister Now


install service without admin rights

Posted on 2006-04-26
Medium Priority
Last Modified: 2010-04-05

i have a app that runs as a service and it wont run on a non-admin account

is it possible to install a service on a non-admin account

Question by:peter2001
  • 2
  • 2
LVL 28

Accepted Solution

2266180 earned 200 total points
ID: 16548485
of course. you install it using the user/password you wish. BUT, that user must be granted (at least) the logon as a service privilege.
from the command line: http://www.windowsitpro.com/Article/ArticleID/15067/15067.html
or you can do it from the administrative tools (depends a little on your OS)

Author Comment

ID: 16564766

is there anyway to run the program using some kind of TokenPrivilege

as i should imagine some of the people who use my program wont have the password to get the required rights so wont be able to run it

LVL 28

Expert Comment

ID: 16565609
not a chanse. if that would be possible, than anybody would be able to grant themselves specific rights and run in a more priviledged environment: that would be a pretty big security issue, won't it?

there are 2 situations in real life:
1) software requires administrative privileges to install
2) the negation of the above
In the second case, if there is a service involved than the service will install itself by default under the local system account and will run under the local system privileges. However, if you need special registry access and alike, you will still have to get administrative support.

this is as designed and it is designed well :) If your program needs special things, than the people using it should be able to get administrative support to install it. adminstrators will in most cases support installation of software that is legitimate :)

of course, even though if installing the service requires administrative privileges, running it, does not (in most cases - depends what the service does/accesses).

Author Comment

ID: 16566446

thanks for your reply

i see what your saying

the link from your first post has some good tips for doing what i need then

regards pete


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question