Questions tagged [uac]

This tag is used for questions concerning the User Account Control (UAC) security feature of Windows Vista, Windows 7, 8 and higher versions of Windows.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

PowerShell - how to open PowerShell as admin and launch script as admin

I am struggling with a very complex problem. Application which my script must install requires elevation of admin rights. Attaching to this application is also available only for an admin. First of ...
  • 25
1 vote
1 answer
50 views

How do I start a powershell process with administrator privilges and redirect stdin (os.exec)

I want to start a powershell process with administrator priviliges and redirect stdin to a writer, I have everything working except how to run it as admin. // Start powershell powershell := exec....
  • 31
1 vote
1 answer
19 views

Why UAC is not checked through ssh

I am wrote a .Net Windows C# Application: I have add a manifest application file (Visual Studio template) Have changed requestedExecutionLevel to "requireAdministrator" level: <...
  • 7,375
0 votes
0 answers
25 views

How check UAC (admin rights) in WIX v4 Installer?

I did't work with WIX Installer. Now I work with latest WIX v4. I want to check with which rights was started installer and after this setect dinamycally installation path idea example: if is_admin() ...
3 votes
1 answer
67 views

How does pskill work across the UAC/elevation boundary?

Disclaimer: I'm asking specifically on Stackoverflow because I want to know how to re-implement this feature. We recently noticed that the Sysinternals tool pskill can kill an elevated process from a ...
  • 36.6k
0 votes
0 answers
57 views

"Bypass" Smartscreen with VBA

I am working on a macro for my office that does a variety of things. Notably it acesses the internet with SeleniumBasic. As not very user that access this macro has this program installed by default (...
0 votes
1 answer
124 views

WinUI application running as Administrator?

I'm trying to write a WinUI 3 desktop app the requires the Administrator role. It does some msiexec work on behalf of the user, and this pretty much demands being admin as far as I can tell. The app ...
1 vote
1 answer
44 views

Difference between User account with Admin rights and Run as Admin

I am running this in Windows 10 What is the difference between running a program in a user account with admin rights, versus running in a standard account but right clicking and running as admin - and ...
  • 149
0 votes
0 answers
91 views

Detecting/Capturing UAC prompt in Windows

I'm making a program which runs on an infinite loop and reports when UAC is launched or when the certain condition is met. I'm trying to detect whenever UAC prompt is triggered by capturing window ...
  • 260
0 votes
0 answers
42 views

List of UAC Virtualization Processes

I'm trying to get a list of processes that run with UAC virtualization. Seems like there is no built-in way to do it, but I found this snippet of code, but it's not working right. Not really sure what ...
0 votes
0 answers
218 views

How to force a tauri app to open a UAC prompt before running to force administrator?

My tauri app includes it's backend with the frontend code, but the backend code requires administrator to run. I don't want the user to have to right click and run as an administrator every time they ...
0 votes
1 answer
109 views

How to prompt for UAC in PowerShell 7 and save the entered password as variable?

I have a simple script to create a scheduled task like this: $action = New-ScheduledTaskAction -Execute "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -Argument '-file "...
user avatar
0 votes
0 answers
63 views

Run python script with different user from ASP.Net Core

With the code below I am executing a python script from an ASP.Net Core app which runs in IIS. I want to run the python script with a different user which has limited rights. I am able to change the ...
1 vote
1 answer
94 views

Powershell self-elevate loop

I'm one of the IT admins in our company. Lately, cyber-security want to get stricter on how easily users can read and/or write data on USB sticks and external mass storage. In addition all new users ...
0 votes
0 answers
74 views

Check the result of Windows User Access Control (UAC) for a running subprocess from C++

Good afternoon. I have a C++ program that, at some point, launches another program (more precisely, an installer for another program). This launches the Windows User Access Control (UAC) dialog. How ...
  • 11
0 votes
0 answers
61 views

Is there a way to spawn msiexec as admin in powershell?

I am currently looking to remove Adobe Acrobat Reader from an ecosystem, and have been able to complete the bones of the ps script. I know Adobe products don't like to play nice, but I at least want ...
0 votes
1 answer
21 views

What is the expected behavior if UAC is off for standard windows user?

If the UAC level is set to Never and a Standard Windows user runs up an app that requests for elevated admin privileges, what would be the expected behavior, should the app continue to run?
  • 397
0 votes
0 answers
78 views

Is there a way to bypass UAC check when uninstall application which was built by electron-builder on Windows platform

Our application is built by electron-builder Our users who don't have admin privilege installed it successfully. When next application is released user can receive the update info and download by ...
  • 367
0 votes
1 answer
161 views

How to prevent c:\programdata\ subdir having integrity level: low mandatory level?

I created a pretty simple application + installer, which relies on including Firefox portable with it. Originally, during installation I was extracting a Firefox portable zip file to c:\programdata\&...
  • 13
0 votes
1 answer
66 views

Making keyboard and mouse operations in a windows service running as a local system?

My Question Is How can I make Mouse and Keyboard operations by using win32.dll or other dlls from a service running in LocalSystem? In this way, the IT employee can type the username and password ...
0 votes
0 answers
55 views

Ask for elevated permission using [duplicate]

How can I ask for elevated permissions. Like this: // Prompt UAC, if (UACprompt == Yes) { system("C:\\Users\\Gadr\\Desktop\\hi.exe"); } else { printf(&...
2 votes
0 answers
51 views

Log when UAC prompt is opened

I'm writing a JAR program and it includes checking if any user is prompted via UAC for a admin username & password. Curious if there are any logs or values that I can read with my program so I can ...
0 votes
1 answer
203 views

What is the solution for UAC restricts XAMPP, Apache & MySQL don't start for error?

When I clicked the setup file of XAMPP, a warning showed saying User Account Control(UAC) restricts XAMPP... It also happened after I turned off Real-time Protection under Virus and Threat protection ...
0 votes
0 answers
51 views

How privilege elevation works and controlling the elevated process in Python

Consider the following python code which is split between two files. The main module is trying to run the dhcp with elevated privileges. I am making use of elevate to do the elevation. # main.py ...
  • 1,028
1 vote
0 answers
179 views

Win C#: Install/Run app as administrator without UAC prompt

I have a requirement where application (app1) needs to install / run another application (app2) on user system in non production hours without UAC prompt. I think I can do it with windows service ...
  • 103
0 votes
1 answer
87 views

How to allow uiAccess in UWP application

I am invoking C++ UIautomation modules in my UWP application. The application is not able to extract control elements since it is not running in an elevated environment. How should I set up the ...
0 votes
1 answer
326 views

Win 11 toggle UAC with powershell

I had disabled UAC with the command Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0 and ...
  • 1
0 votes
0 answers
73 views

How to create windows context menu with UAC elevation?

I wanted to create a custom context menu for the windows folder where I can run the application with UAC elevation. What I want, is to create a context menu where I can open the command prompt with ...
1 vote
1 answer
109 views

UAC Window application name

I have a application that uses Wix for its installer. I'd like to understand where the UAC window takes its app name from, I am having an old name where the UAC window appears does not correspond with ...
  • 1,078
1 vote
1 answer
435 views

Is there a way to use the USB HID to control the specific GUI volume on Windows?

I have a USB(1.1) audio project using a MCU with the USB HID to control the Host(Windows 10) volume, this project combine with a UAC class and HID class. I have successfully used the consumer page(...
0 votes
0 answers
49 views

Access C:\Documents and Settings\ and subfolders like TreeSize application is able to

I have seen this question multiple times posted yet a clear answer has not been given (except that it should not be possible, yet TreeSize does it..., so does a virusscanner). I'm creating a C# ...
  • 55
0 votes
1 answer
238 views

List all dependencies of a workflow in UAC / StoneBranch

I have a workflow in UAC that contains inside it another list of workflows and each one of it a series of tasks. I want to make an API Call to list all the WFs and tasks and their dependencies. Is ...
  • 13
0 votes
0 answers
89 views

UAC virtualization is now allowed when register jenkins as service on Windows10

I've used winsw to register my jenkins slave as a service on my windows10 and then I found that because UAC virtualization is set to "not allowed" on every child process that was triggered ...
7 votes
1 answer
296 views

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 ...
0 votes
1 answer
25 views

Windows 10 WPF will not autostart on system reboot when requestedExecutionLevel set to "requireAdministrator"

Windows 10 WPF will not autostart on system reboot when requestedExecutionLevel set to "requireAdministrato
-1 votes
2 answers
1k views

How to make application run as admin on user accounts?

Is it possible to make a .NET application always an admin while being run on a user account without a UAC popup? I've spent some time searching for this capability but haven't found any satisfactory ...
  • 53
0 votes
3 answers
86 views

QT Debugging QFile::remove() Windows 10 MSVS 2019

I am working on a QT application that has to communicate with a few Windows-utilities. The result of these utilities are a couple of “production-files” that should be listed in a “filenames-txt-file” ...
  • 139
0 votes
0 answers
61 views

Beginner Python Project - My function is skipping, what is causing this?

as the title says I'm a beginner with Python. I have started to work on what I thought first was a simple enough script for scanning a folder and printing the names of each subdirectory to a CMD ...
0 votes
1 answer
142 views

Enabling Windows Features through Python won't let DISM have elevated access even after letting Python get elevated access through functions

I'm trying to enable Windows Features through Python through functions. Here's the scripts that I've used: UAC.py: def gainadminaccess(): import os import sys import win32com.shell.shell ...
3 votes
2 answers
763 views

How to Runas App with another admin user in Windows

This code is intended for non-administrator users of their computer so that they can run a task / application as admin So i have created an admin user which i would use to launch app ( with path). I'm ...
  • 31
3 votes
0 answers
532 views

UAC prompt electron when installing app in admin and non-admin user

below are our electron and builder versions, "electron": "13.1.7" "electron-builder": "22.11.9" in electron-builder file, our configuration have "win":...
0 votes
2 answers
926 views

Check if powerhshell was started using "run as administrator"

i found an old question on this topic. However, i am not clear. I have a script that checks, if PS has been run using "run as administrator" and if yes it does the job, otherweise it prompts ...
  • 192
0 votes
1 answer
164 views

How can I create a windows application that should run with admin rights in .Net C# without prompting UAC again and again?

I am developing a windows application in .Net C#. The application is using some third party drivers which requires admin rights for it's execution. I know we can use app manifest and provide the ...
0 votes
1 answer
102 views

Is there an option to have score of UAC prompt?

I have this script that have goto getPrivileges, and this is useless coz it spams the whole time for UAC, Is there an option to make if you accepted UAC then does 1 thing and if you don't then another?...
1 vote
1 answer
114 views

How to leave elevated privileges and return back to normal

I have some old programs in C++ for Windows and I create installers for them with NSIS (Nullsoft Scriptable Install System). All these applications work in all systems from Windows 95 to Windows 10, ...
  • 5,781
0 votes
1 answer
460 views

Elevate UAC prompt for .net application using manifest file

I have created an sample winforms application where need to elevate UAC prompt once user double clicks or execute. To elevate same have created manifest file "WindowsFormsApp1.exe.manifest" ...
  • 2,125
0 votes
0 answers
196 views

Run executable as admin but if user presses no, it runs without admin

I am making a C++ executable in Visual Studio that needs administrator rights for a part of the program and for the other part it doesn't need it, I was wondering if when the user presses the ...
0 votes
1 answer
125 views

Cannot import ctypes for checking admin privileges on Windows platform

Hello Programmers of Stack overflow, I am trying to import I library for my code, but whenever I execute my code on PyCharm, i get an error: File "C:\Users\USER\projectextinguish\venv\lib\site-...
1 vote
1 answer
221 views

Elevate a script with parameters

I have a Powershell script with parameters that I'd like to be able to self-elevate. [CmdletBinding()] param ( [Parameter(ParameterSetName="cp")] [Switch] $copy = $false, [...

1
2 3 4 5
29