Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4093190
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:35:13+00:00 2026-05-20T19:35:13+00:00

I have a Winforms app which runs under a standard user account (i.e. user

  • 0

I have a Winforms app which runs under a standard user account (i.e. user account logs in, app runs under that named user). However, this very app needs to perform some actions (Writing to registry being one of them), which require admin privileges, and restart a service (the problem I want to avoid is this one: Service Controller not able to start service – Access denied).

One way to solve this is to make the entire app run as administrator, using a manifest file. Alternatively, would it work if I write a windows service (call it x) running under the highest power account (local system I believe), which can do all of the high-power-account-required stuff and, which in turn calls the existant service, which I need to manipulate and is running under the named/logged-in user account (thus a standard user). If so, how can I invoke a windows service to run on demand (or would a console app be better)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:35:13+00:00Added an answer on May 20, 2026 at 7:35 pm

    What I do in this instance:

    For the service use this tool to allow your limited account group or user permissions to start/stop:
    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en
    And a bit on how to use:
    http://ss64.com/nt/subinacl.html

    As for registry, you need to find the appropriate registry key > right-click > permissions > “Full Control” for the “Users” group or the name of the specific “limited” group that need these tweaked permissions.

    I typically run this all from an script in an installer or from setup script. The script adjusts the permissions for the very specific things that are necessary, registry/services/files/folders. This allows the software to run under the context of the limited rights user, not elevated with admin rights.

    As a working example I use this for a custom OpenVPN implementation I built that runs for non-admin users. I had to allow them start/stop the service and write to the log file (in the program files folder).

    If you need a more hands on working example, let me know and I can probably throw something together.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a .net winforms app which has a few animation effects, fade ins
I have a combo box on a WinForms app in which an item may
I've got a VB.NET WinForms app in which I have the need to refer
I have a legacy WinForms Mdi App in VB.Net 2.0 which I am adding
I have a WinForms app written in C# with .NET 3.5. It runs a
So we have a winforms app that in the task manager should anywhere from
We have an MSI installer for a .Net WinForms app for Windows XP that
I have a winforms app and i want to keep track of every time
I have a WinForms app with a datagridview and a bindingsource. I want the
Problem 1: I have a simple winforms app and I want to DataBind my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.