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

vb.net Application Installer (msi) Run as admin

Is it possible for a vb.net Application Windows Installer (msi) to Run as admin? The problem is that when I start the installer for my application, you have to go through loads and click next( as expected) and then wait for ages and FINALLY you get…
user1244772
  • 294
  • 4
  • 9
  • 22
0
votes
1 answer

Do User Account Controls stick in windows?

I was experimenting with an update program called "update.exe" which for the last 10 years just copied changed files from a mapped network drive. It's been quite a while since Vista was released, but it seems prudent to finally try and tackle UAC. …
Peter Turner
  • 11,199
  • 10
  • 68
  • 109
0
votes
1 answer

Screen saver crashes if UAC is enabled

Does screen saver require any manifest file? I'm renaming the .exe to .scr file. Right now i am not using any manifest file for the screen saver. But if if UAC is enabled, my screen saver crashes. How to by pass this UAC thing ?
Samir
  • 3,923
  • 9
  • 36
  • 43
0
votes
1 answer

run psexec as admin mode win2008 with UAC mode 4 (powershell maybe?)

I am trying to run the following command in cmd with admin mode: psexec -u mydomain\myuser -p mypass net time /set /domain:%USERDOMAIN% /y I am getting: 'net exited with error code 2' this is only working when i change UAC level to 3 (instead of…
user829174
  • 6,132
  • 24
  • 75
  • 125
0
votes
1 answer

How to have cmd.exe invoke a command "run as administrator" without administrator account password?

My question is basically identical to this unanswered question: How to run an application as "run as administrator" from the command prompt? I am working from within the Oracle Enterprise Manager, setting up a "user-defined metric", and using the…
Quixote
  • 83
  • 1
  • 9
0
votes
1 answer

Run with administrative permission issue

I am using Windows Vista and I find something strange, I programatically invoke IE to open IE to access some local html page, the current user belongs to administrator group; I programatically invoke IE with RunAs parameter, and let IE to access …
George2
  • 44,761
  • 110
  • 317
  • 455
0
votes
1 answer

Writing 2 batch files into 1

I've got 2 separate batch files, the first one checks whether UAC is enabled or disabled. If enabled it calls "uac.bat". REG QUERY HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\ /v EnableLUA | FIND "0x1" >NUL && ( call…
Perulo
  • 69
  • 2
  • 7
0
votes
2 answers

Windows 7 (UAC) doesn't allow my program to write down inside data file owned by another program. How to do?

I've to maintain a VB6 piece of software which, basically, exports data from a second program and import them into data files about a third program. So, this import/export tool worked very well since some years under Windows 95 to XP, but, now, I…
hilow
  • 11
  • 1
  • 3
0
votes
1 answer

Azure 1.7, Visual Studio and UAC prompts

Running Visual Studio Ultimate 2010 on Win7 x64. I just installed the latest Azure SDK and upgraded a web role. When I enter the debugger from Visual Studio, I need to click through two UAC prompts before the site appears. I believe these are for…
roufamatic
  • 18,187
  • 7
  • 57
  • 86
0
votes
1 answer

Local Security policy in windows 7 - Only elevate executable files that are signed and validated

I'm writing a windows application that is embed with a manifest considering UAC in windows 7. On testing the application I found that , if "only elevate executable files that are signed and validated" option in local security policy is enabled, the…
2vision2
  • 4,933
  • 16
  • 83
  • 164
0
votes
1 answer

Restart windows service on server (Windows 2008 R2) having UAC turned ON (from ASP.NET application)

I am trying to restart a windows service (part of the application) from my ASP.NET (.Net 4) application but it fails with the error: Cannot open service on computer '.'. Inner Exception: Access is denied StackTrace: at…
Aju C
  • 3
  • 1
  • 2
0
votes
2 answers

Register dll to gac as another user

I have an application that requeres to register a dll into a gac on a client computer everytime a new dll is deployed the problem is that the client computers only have restricted users with UAC turned on. The application knows the credentials of a…
Jester
  • 3,069
  • 5
  • 30
  • 44
0
votes
1 answer

Deactivate UAC in Windows 7 for a specific program

I have a program that should run every night. Another is started every boot. Both programms trigger the UAC-Window. At least with the nightly scheduled programm this is very bad, since my PC is waiting the whole night long for my confirmation of the…
NobbZ
  • 1,360
  • 3
  • 15
  • 30
0
votes
1 answer

Unable to launch installed application created from Visual Studio Installer when installed in %ProgramFiles(x86)%

I just completed my application development efforts on a D2D1 application using Visual Studio 2010 IDE in C++. I was exploring different ways of creating a package from this and used the built-in Visual Studio installer/setup. The setup project…
0
votes
3 answers

I can change signed executable

I've tried to download a signed executable ( http://live.sysinternals.com/procexp.exe ) and modify it. I've thought it can't be done and Windows will somehow prevent me from running it (or warn me at least). But when I change a single character (for…
Samuel
  • 2,430
  • 5
  • 31
  • 41