Questions tagged [elevated-privileges]

Elevated privileges are higher privileges, offered by an operating system, usually higher than normal user's privileges.

Elevated privileges are higher privileges, offered by an operating system. They are usually higher than normal user's privileges (for example, administrator privileges are regarded as elevated privileges).

398 questions
20
votes
3 answers

How do I make a console app always run as an administrator?

I have a console application that was developed to be called by a erp software. They call my app inside the erp and when they do it, i always get errors related to the insufficient permission to do it. I have checked the "run this program as an…
Marco
  • 235
  • 1
  • 2
  • 8
17
votes
2 answers

How to fix msedgewebview2 error in VS2022 when admin?

I have installed the relatively fresh Visual Studio 2022 on a Windows installation. The work I do often requires administrative privileges (local IIS). To do this I have two users, one 'normal' account that is logged in to Windows and one…
pekaaw
  • 2,309
  • 19
  • 18
17
votes
5 answers

How to run a process as non-admin from an elevated PowerShell console?

Maybe there is a way to do it with Start-Process cmdlet that I cannot find? The other related Q/A's I found on StackOverflow such as this, this and this all give a solution to do this with a custom C# code. My question is specifically, is there any…
orad
  • 15,272
  • 23
  • 77
  • 113
17
votes
3 answers

system() vs execve()

Both system() and execve() can be used to execute another command inside a program. Why in set-UID programs, system() is dangerous, while execve() is safe ?
Jake
  • 16,329
  • 50
  • 126
  • 202
15
votes
3 answers

How to set 'Run as administrator' on a file using Inno Setup

I'm creating an installer using Inno Setup. As part of the install process I'm installing Tomcat. On Windows 7 I suffer from the problem described here: http://blog.paulbouwer.com/2010/10/23/the-case-of-the-annoying-tomcat-6-monitor/ I can fix it by…
learnAndImprove
  • 1,339
  • 4
  • 15
  • 25
14
votes
0 answers

Running an accessibility application requires following steps

I am trying to create a UI automation client for metro app automation but when i set the uiAccess to true it gives the message (while building), Microsoft Visual Studio Unable to start program 'C:\myprogram\myprogram.exe'. The application manifest…
user1846626
  • 169
  • 4
13
votes
3 answers

Elevating Permissions Under Windows 7

I have an 'auto-upgrade' mechanism that has been working for many years under Windows XP which fails under Windows 7 because the prompt to the User (which never existed under under Windows XP) to grant the program permission to run with…
S L Bentall
  • 257
  • 2
  • 11
13
votes
1 answer

How to prevent uninstaller elevating for Standard Windows 10 user?

We have an x86 Win32 desktop application. When the installer is run by a Standard (non-Admin) user, we avoid elevating and/or showing a UAC prompt and install under C:\Users\username\AppData\Roaming\... instead of the common Program Files…
d.l.
  • 141
  • 1
  • 6
11
votes
1 answer

Installing application for currently logged in user from Inno Setup installer running as Administrator

A very common question about creating (Inno Setup) installers revolves around accessing/modifying a profile of a specific user (the currently logged in user) from an installer that runs with elevated/Administrator privileges. Doing this has many…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
10
votes
0 answers

Start non-elevated process from elevated process

Possible Duplicate: How to run NOT elevated in Vista (.NET) How do you de-elevate privileges for a child process My program running as an elevated process, and starting new processes with Process.Start(). For security reasons, I would like to run…
DxCK
  • 4,402
  • 7
  • 50
  • 89
10
votes
2 answers

How to make a batch file execute a reg file

I have the following code @echo off file.reg pause This works but when the batch file is elevated I get an error saying that it cannot find the file. does any one know what I am doing wrong.
09stephenb
  • 9,358
  • 15
  • 53
  • 91
9
votes
5 answers

In browser trusted application Silverlight 5

With the new Silverlight 5, we can now have an In-Browser elevated-trust application. However, I'm experiencing some problems to deploy the application. When I am testing the application from Visual Studio, everything works fine because it…
Philippe
  • 986
  • 1
  • 6
  • 17
8
votes
2 answers

Can I modify a Win7 environment to allow a .Net program to always run as Administrator?

We are about to roll out several hundred new machines running windows 7, with the OS installed via WDS so at the moment we can make changes and sysprep them into the build. The problem is a .Net app we wrote years ago which itself spawns a modified…
Andiih
  • 12,285
  • 10
  • 57
  • 88
8
votes
1 answer

Delphi 10.4.2: Why does console application require administrative privileges?

Why does a simple console app require administrative privileges? program LTUpdate; {$APPTYPE CONSOLE} begin WriteLn('Hello World'); end. If I run this program from a command prompt nothing happens. If I run the command prompt with…
8
votes
2 answers

Restart program unelevated

For some reason, my C# program needs to restart with elevated privileges. I use the following code to achieve it: private static void RestartForPermissionsFix() { ProcessStartInfo processInfo = new ProcessStartInfo(); processInfo.Verb =…
coffee_machine
  • 1,203
  • 14
  • 28
1
2
3
26 27