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.

This tag is used for questions concerning the User Account Control (UAC) security feature of Windows Vista, Windows 7, 8 and higher. This feature, enabled by default, reduces the privilege level of an Administrator account to those of Limited User account. Because of this, many programs that worked in previous Windows versions do not work as expected in Windows Vista, Windows 7, 8 and higher.

With UAC, each user having admin rights would have split-token - one for regular usage and one for administrative usage. Regular token won't be able to have administrative permissions (such as changing system-time, or installing applications). Administrative token would have rights to do any administrative activity.

A process (and all its threads) would have either of these tokens, and they cannot change to another token (for e.g. from Regular to Admin). User has to respond to UAC prompt when opening Admin mode (elevated) application.

Programmers can specify if their programs to require admin (elevated) token so that OS will always attempt to launch the process with elevation. This information is put into EXE header itself.

1432 questions
-1
votes
1 answer

How to autorun on system start with admin ritghts from manifest? c#

I have the problem that my application doesn't start on system start anymore after I added this to the manifest I know that it has something to…
Sardar Agabejli
  • 423
  • 8
  • 32
-1
votes
1 answer

Changing the behaviour of a Software

I have a msi file when I install it writes instructions to HKEY_LOCAL_MACHINE;and give UAC to user to do it or not I want to edit this behaviour I mean prompting for a UAC in a way that it will do all the installation without prompting to user for a…
user2959423
  • 29
  • 1
  • 5
-1
votes
1 answer

Bring UAC window to top using ShellExecuteEx()

I am using Microsoft Visual Studio 2010 and I am writing my code in C/C++. I have code which automatically starts my installation process. Installation process requires UAC in this case, so I use ShellExecuteEx() API function with runas…
cls
  • 501
  • 1
  • 5
  • 18
-1
votes
1 answer

Avoid UAC prompts when calling another process using C#

I'm developing an iventory software for my company that demands administrative rights (WMI calls, registry access, etc.). For convenience I do no want the UAC to prompt the user for clearance to execute the app (yes, I must force the app to run even…
Paulo
  • 29
  • 2
-1
votes
3 answers

UAC/VS/W2K8: Why does VS not launch with admin privleges when I am in the Administrators group?

Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to invoke the creation of a…
keithwarren7
  • 14,094
  • 8
  • 53
  • 74
-1
votes
1 answer

Who is the user when running under administrator privilege?

After a successful compiled application, I transferred the executable to a network drive with the post-build event in VS. Every time I start my project, it is opened under my user credential but it needs administrators privilege to run like…
Guibson
  • 11
  • 2
-1
votes
1 answer

How to make a folder UAC protected

Can someone tell me how (in Windows 7 PRO) I can create a folder, so when I try to open it, User Account Control will ask for a Administrator's password. I need to restrict a folder on the C: drive, only be opened by administrators, and if a normal…
Steve IT
  • 164
  • 1
  • 8
-1
votes
1 answer

LoadLibrary fails when called from process run as Standard User on Windows Server 2008 with Terminal Services

We have a .NET library that platform invokes native code, specifically we call LoadLibrary(). This code has been in place for a while, but a new user has noticed when running as a Terminal Services user of a Windows Server 2008 R2 machine that it…
JosephA
  • 1,187
  • 3
  • 13
  • 27
-1
votes
1 answer

Alternative to disabling UAC

I am looking for a method to use as an alternative to disabling UAC to keep application persistence throughout the lifetime of the system. My application runs every time the system starts up, and it requires elevated privileges, so when UAC is…
sysenter
  • 75
  • 1
  • 9
-1
votes
1 answer

Preserve mapped drive letter information during UAC elevation

We have an application that needs to know the path that it is executed from (which is always a network path). We set up part of our configuration based on the path that the application is launched from, and we really want that configuration to use…
Kevin Day
  • 16,067
  • 8
  • 44
  • 68
-1
votes
1 answer

Any suggestions on how to implement this system?

I need to implement a system where I have 5 forms. An agent then goes to a client and can fill one, some, or all of these forms. The client will then be able to access ONLY his forms through a backend system, while the agent has a god-eye view of…
seedg
  • 21,692
  • 10
  • 42
  • 59
-1
votes
2 answers

UAC prompting on startup program with "asInvoker" on the "requestedExecutionLevel"

I am developing a very simple C# Windows Application (it only displays a message box saying "UACtest") that I want it to run at startup without prompting UAC. For that I created a registry key for it under HKCU, and in the machine that I compiled it…
samsam
  • 39
  • 1
  • 8
-1
votes
1 answer

Does it really need Admin privilege to reboot OS

When I run my App on Win7 (UAC is on) with user privilege. It can sucessfully reboot OS, So in this case, No Administrator privilege is required? Is there any official document to describe this? Any comments is appreciated. HANDLE hToken =…
Jerry YY Rain
  • 4,134
  • 7
  • 35
  • 52
-1
votes
1 answer

Disable task manager from a limited / guest account

I am developing an application in c++ from which a user can disable task manager from within the application (and little more functions). Here's how i did it in visual c++ : HKEY regHandle; DWORD dwValue = 1; BYTE* data =…
Jasir
  • 677
  • 1
  • 8
  • 26
-1
votes
1 answer

C# Process vs VB6 Shell vs UAC

I'm rewriting a small VB6 application/tool whose job is to install the latest version of some legacy VB6 app. The legacy VB6 app is an ActiveX DLL that's built and packaged into an executable installer (some Inno Setup script builds an installer by…
Mathieu Guindon
  • 69,817
  • 8
  • 107
  • 235