CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2003
    Posts
    424

    Windows service power

    1. Does a Windows service always have administrative rights?
    If not, can it?
    2. Can a service run a .msi to install a program without any user logged on?

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Windows service power

    Services don't have rights. As a service, they executed by an administrative login.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jan 2007
    Posts
    70

    Re: Windows service power

    As far as I know (and that is not very far) most services are owned by a "user" called System. The System user actually has higher privileges than an administrative user.

    Edit:
    For each service, you can configure which user the service shall run as. Go to Control Panel -> Administrative tools -> Services.
    Right click on a service and select Properties.
    Select tab #2, called "Log on".
    Last edited by Allan Olesen; January 30th, 2007 at 07:10 PM.

  4. #4
    Join Date
    May 2003
    Posts
    424

    Re: Windows service power

    Services run when Windows boots, not when a user logs in, correct?

  5. #5
    Join Date
    May 2002
    Posts
    10,943

    Re: Windows service power

    Quote Originally Posted by aewarnick
    Services run when Windows boots, not when a user logs in, correct?
    Some yes, some no. If you look at the processes list, you can see some that load with the user as SYSTEM and some with your user.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured