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
6
votes
5 answers

Check if the script has elevated permissions

I would like to check whether the context in which my VBscript runs allows me to perform administrative tasks. Requirements: The solution should work on all Windows operating systems starting with Server 2003. (This rules out solutions which just…
Heinzi
  • 167,459
  • 57
  • 363
  • 519
6
votes
1 answer

How to grant elevation with Delphi

I have written a database app that imports data from an excel file into a Access database. I have never had trouble to run the app, to insert records into the database, but as soon as I run the function to import data from the Excel into the Access…
Japster
  • 985
  • 6
  • 19
  • 38
5
votes
1 answer

How do I run a PowerShell script as administrator using a shortcut?

I'm trying to run a PowerShell script as administrator using a shortcut. I have tried many ways, but it still does not work: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoExit -Verb RunAs Start-Process…
Aaron Li
  • 81
  • 1
  • 3
5
votes
2 answers

osx - How to programmatically delete a file with elevated privileges?

I'm trying to remove a file form the ~/Library/PreferencePanes folder, and this cannot be done with normal privileges. Usually, if you need to delete any file from the ~/Library folder the system will ask for your username and password. The current…
Alex
  • 7,432
  • 20
  • 75
  • 118
5
votes
1 answer

Execute postinstall program with administrator privileges in Inno Setup

I'm trying to run another installer at the end of the installation (postinstall). The installer needs administrator provileges. So PrivilegesRequired=admin was added and the error still was there. Error message below: Unable to execute…
5
votes
0 answers

Python: call a function with sudo privileges

Consider the following situation: def sudo_get_data(): # needs root permissions return some_python_objects() # not plain text output def user_notify(data): # must be called as user if condition(data): …
user7501761
  • 91
  • 1
  • 3
5
votes
2 answers

Run Java application as administrator on Windows

I am writing an installer in Java that will accordingly require elevated privileges to access the Program Files directory. Based on information that I've found online, I've written an implementation as follows: public static void main(String…
bionicOnion
  • 1,494
  • 3
  • 16
  • 25
5
votes
1 answer

setuid/setgid wrapper for python script

I have a Python script that I wish to be able to be run as the system user guybrush with UID 200 and group guybrush with GID 200. At the moment my Python script (located in /path/to/script.py) looks like this: #!/usr/bin/env python2 import os print…
DanielGibbs
  • 9,910
  • 11
  • 76
  • 121
5
votes
2 answers

How to force my project in Visual Studio 2013 to always run as Administrator?

I have a WPF project in Visual Studio 2013, this project have two buttons. The first button say Start Service and the second say Stop Service. When I run my Visual Studio as Administrator, the buttons work. But when I open my Visual Studio without…
CampDev
  • 1,659
  • 3
  • 16
  • 22
5
votes
1 answer

F# and Silverlight 5: out-of-browser with elevated trust?

Currently, I'm using Daniel Mohl's "F# Web Application (Silverlight)" extension to create a Silverlight app entirely in F# (Visual Studio 2010). I need to do local file I/O (which obviously requires elevated trust), and I'd like to run the app…
MiloDC
  • 2,373
  • 1
  • 16
  • 25
5
votes
2 answers

application which is elevated needs to get non-elevated mapped drives list

I know that a .NET application which is run as elevated cannot see the mapped drives of the user. I also know there is a registry hack to fix this (which involves a reboot). I would like to create a different solution to this problem. Our…
flobadob
  • 2,804
  • 2
  • 22
  • 23
5
votes
4 answers

Launching .exe in its own directory with elevation priviledges

My question is pretty simple, I would like to launch a .exe in its own directory but with elevation rights/privileges. I know that this question as been raised before but I didn't found the right way for fixing my problem. Indeed, I first tried…
5
votes
2 answers

How can I copy a file as a "Standard User" in Vista (ie "An Administrative Choice Application") by prompting user for admin credentials?

I have what the UAC Development Guides refer to as a "Administrative Choice Application." If you're familiar with what this is skip to the next section. Background: I want to let a "Standard" user have the ability to select/deselect a Run On…
blak3r
  • 16,066
  • 16
  • 78
  • 98
4
votes
1 answer

Is it possible to ask Powershell to start-process in Windows Terminal instead of a new Window

If I run in Windows Terminal PowerShell tab: start-process Powershell -Verb runas It will create a new window. Is there a way to create a tab in Windows Terminal instead?
user310291
  • 36,946
  • 82
  • 271
  • 487
4
votes
1 answer

Shield image on desktop application icon

I have a C# Desktop application (windows 10) that does not require administrator privileges to run. I've already removed the manifest file that existed, but even so, after installation, the icon displays an image of a shield, and when running it the…