elevated-privileges Questions

6

Solved

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 wi...
Insulin asked 21/10, 2009 at 8:59

15

Solved

I am writing a pyqt application which require to execute admin task. I would prefer to start my script with elevate privilege. I am aware that this question is asked many times in SO or in other fo...
Weiler asked 30/10, 2013 at 1:41

4

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 ...
Lewiss asked 27/10, 2015 at 20:9

1

I want to launch the file c:\dfs-build.ps1 with the specific user and admin privileges for that I'm trying to use the below command but it's not working. When I'm opening the powershell manually an...
Vaulted asked 2/11, 2023 at 14:59

1

Solved

I am trying to implement the function proposed by mklement0 on this answer My goal is to implement this as a reusable batch subfunction But before that I have run into a pattern of inconsistent beh...
Toratorah asked 18/4, 2023 at 2:39

14

Solved

This has been asked before but was closed as "Not a real question" https://stackoverflow.com/questions/7450813/how-to-run-a-site-with-administrative-privileges-in-iis-express-7-5 However I think ...

19

Solved

I want my batch file to only run elevated. If not elevated, provide an option for the user to relaunch batch as elevated. I'm writing a batch file to set a system variable, copy two files to a Pro...
Piscatorial asked 12/8, 2011 at 18:55

1

Solved

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 admini...
Tautologism asked 19/10, 2022 at 12:4

1

Solved

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 hap...
Southwestward asked 22/4, 2022 at 7:12

2

Solved

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' acc...
Presumption asked 6/12, 2021 at 13:39

10

Solved

Is it possible to make a batch file delete itself? I have tried to make it execute another file to delete it but this did not work. Does any one know how I could do it? The batch file I am using is...

1

Solved

I want to run git bash on Windows as an admin, every time I open it. My OS is Windows 10 Home 64-bit.
Heartless asked 5/3, 2019 at 11:48

5

Solved

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...
Stonechat asked 10/4, 2015 at 19:28

2

I am working with Nodejs on Windows 10. Every time the app is opened I want to check if the files with the extension ext are associated to my app. If not I would need to run this commands on cmd in...
Crain asked 31/10, 2018 at 18:48

12

Solved

Once my program is installed on a client machine, how do I force my program to run as an administrator on Windows 7?
Sedda asked 12/5, 2010 at 11:9

1

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 -ExecutionPoli...
Henni asked 25/2, 2021 at 4:23

16

Solved

I am trying to write a batch file for my users to run from their Vista machines with UAC. The file is re-writing their hosts file, so it needs to be run with Administrator permissions. I need to be...
Postorbital asked 12/12, 2009 at 22:53

1

Solved

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. ...
Uncharted asked 27/2, 2020 at 13:39

1

Solved

When users try to uninstall their own single user installation (for example installed using lowestprivileges none and HKCU entries) with 'Add/Remove Programs' in the Control Panel, everything works...

4

We have a program we have developed in house. We are upgrading to use Visual Studio 2012, and so have to leave the Visual Studio installer project behind. InstallShield LE was giving us problems wi...
Masker asked 15/1, 2013 at 22:32

2

Solved

I have a batch file that starts with elevated privileges (my installer spawns it), but at a certain point I need to run a command as the original user who started my installer (i.e. drop from the e...
Ethbun asked 26/11, 2013 at 13:13

2

Solved

I need to understand the difference between ansible's remote_user & become_user considering that the play will either run locally or remotely. Difference between: - hosts: all become: yes b...
Lelia asked 2/5, 2019 at 4:25

2

I have read that there are some registers that an x86 CPU cannot modify while in user mode (I believe these registers are called "privileged registers"). But can an x86 CPU read the values of thes...

4

Solved

I have some utility methods that use Microsoft.Web.Administration.ServerManager that I've been having some issues with. Use the following dead simple code for illustration purposes. using(var mgr =...
Lamothe asked 11/12, 2011 at 22:8

3

Solved

I am writing a Windows batch file that automatically escalates itself to administrative permissions, provided the user clicks "Yes" on the User Access Control dialog that appears. I am using a tec...
Inexistent asked 12/2, 2019 at 20:37

© 2022 - 2025 — McMap. All rights reserved.