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
4
votes
2 answers

Run electron app as admin windows

I am writing an electron app that I need to run with admin access (like sudo).I haven't created any installer for that app. I know that I can write sudo electron . in linux to start my app as root but what about windows? Is there any similar…
Manos Kounelakis
  • 2,848
  • 5
  • 31
  • 55
4
votes
3 answers

How to prompt to run EXE as different user in powershell

How would I go about running an EXE as a different user? How could I prompt for credentials or atleast ask for the password for a local admin to launch an exe through powershell. I'm having a hard time getting the runas command to work. This was…
user2746059
  • 43
  • 1
  • 1
  • 4
4
votes
2 answers

Make an HTA file run as admin (elevated)

In wsf, vbs and js files you can easily find out if they run elevated and if not you can easily make them. The code I've written for that is this: EnsureElevatedPrivileges(); WScript.Echo("Running elevated now!"); function…
Forivin
  • 14,780
  • 27
  • 106
  • 199
4
votes
1 answer

Inno Setup run/execute code as another user

Much as it is possible to use ExecAsOriginalUser to run something using the starting/logged in user's credentials, is there a command or way to run a particular piece of code as a specific user? To explain further, I am writing the computer name…
Robert Wigley
  • 1,917
  • 22
  • 42
4
votes
1 answer

How do I use burn's new ability to ability to launch an elevated process after installation is complete?

The current set of samples on how to use wix's new ability to run an elevated process through the engine is very sparse, if it exists at all. From the WIP and the schema docs, I can see that I need a minimum of the following:
Lynn Crumbling
  • 12,985
  • 8
  • 57
  • 95
4
votes
1 answer

Any way to programmatically get a value/setting from Bcdedit.exe, using .NET?

When running bcdedit.exe from an elevated command prompt, you can see the values of the current BCD settings. I need to read the setting/value of hypervisorlaunchtype. Does anyone know a way to do this? I've tried to write the piped output to a tmp…
J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
4
votes
2 answers

Enable elevated trust for the Silverlight 5 application when running in-browser without adding the registry key

To enable elevated trust for the Silverlight 5 application when running in-browser I've tried so many options well described e.g. here (by Mister Goodcat) and it works good with our VeriSign certificate only if I add the registry key…
3
votes
1 answer

Silverlight 5 Trusted Mode. Accessing FileSystem and Local drives

Is there any way, any chance at all to access entire filesystem in SL app with elevated trust? That will work both in Windows and Mac? Through AutomationFactory,PInvoke or unmanaged code? I need an app that could read local drives, folders and…
iLemming
  • 34,477
  • 60
  • 195
  • 309
3
votes
1 answer

Execute postinstall program (sub installer) with administrator privileges in Inno Setup even if the main installer does not have them

Just like in this question, I'm trying to implement an installer which starts another 3rd party driver installer at the end of the installation. This is achieved by running my installer with administrative privileges (which is the default if not…
vsz
  • 4,811
  • 7
  • 41
  • 78
3
votes
2 answers

How to pass sudo\root password to a Linux command using Free Pascal

Most of the other questions about this seem to be C related. I am using Free Pascal and the Lazarus IDE, version 2.4.0 and 0.9.30 respectively. I am creating a GUI that calls and passes arguments to a Linux command. I don't want my users to have to…
Gizmo_the_Great
  • 979
  • 13
  • 28
3
votes
1 answer

How to elevate my winform privileges (at runtime) to admin on button press

I am developing an application that should not require elevated privileges unless the user wants to change a network adapter's IP address. I would like to allow the application to run as invoked however require and maintain elevated privileges after…
JCoder
  • 75
  • 5
3
votes
2 answers

Run a PowerShell script from a cmd batch as admin

I have a PowerShell setup which I want to execute on a computer where perhaps the execution policy is restricted and requires admin rights. Ideally, I could wrap it in a cmd batch like follows: powershell -Command "Start-Process powershell -Verb…
antonio
  • 10,629
  • 13
  • 68
  • 136
3
votes
1 answer

New-CimSession without elevation by providing admin credentials on Windows 10?

I need to query some WMI values using PowerShell from Windows 10 devices. The script is executed in the context of a non-admin user by some software distribution tooling. There is a local admin account, and for the current purpose (retrieving…
muffel
  • 7,004
  • 8
  • 57
  • 98
3
votes
1 answer

How do I get a coredump from a setcap executable?

To prevent the escape of privileged data, setcap executables on Linux don't dump core: ijw@build$ cat > test.c main() { abort(); } ijw@build$ gcc test.c test.c: In function ‘main’: test.c:1: warning: incompatible implicit declaration of built-in…
ijw
  • 4,376
  • 3
  • 25
  • 29
3
votes
1 answer

List of Win32 APIs that require administrative privilege

I'm trying to find a list of Win32 API functions that require the process that uses them to have heightened administrative privileges in order to use them. Does anyone know where I could find a list of these functions? Thanks!
Jeremy
  • 145
  • 2
  • 12