install service without admin rights

Posted on 2006-04-26
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
    LVL 28

    Accepted Solution

    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:
    or you can do it from the administrative tools (depends a little on your OS)
    LVL 1

    Author Comment


    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

    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).
    LVL 1

    Author Comment


    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    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…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video discusses moving either the default database or any database to a new volume.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now