UAC

UAC and Security Shield Icon

UAC in Wiki

User Account Control (UAC) is a technology and security infrastructure introduced with Microsoft’s Windows Vista and Windows Server 2008 operating systems.

It aims to improve the security of Microsoft Windows by limiting application software to standard user privileges until an administrator authorizes an increase or elevation.

In this way, only applications trusted by the user may receive administrative privileges, and malware should be kept from compromising the operating system.

In other words, a user account may have administrator privileges assigned to it,

but applications that the user runs do not inherit those privileges unless they are approved beforehand or the user explicitly authorizes it.

Tasks that require administrator privileges will trigger a UAC prompt (if UAC is enabled);

they are typically marked by a security shield icon

A program can request elevation in a number of different ways.

One way for program developers is to add a requestedPrivileges section to an XML document,

known as the manifest, that is then embedded into the application.

Configure in Visual C++ project

The following message cloud be extra from exe using 7-zip:

xxx.exe\.rsrc\MANIFEST
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false">
</requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings" xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</ms_windowsSettings:dpiAware>
</windowsSettings>
</application>
</assembly>

Add manifest file in WPF project

Security Shield Icon

When the ‘requestedExecutionLevel’ option select “highestAvailable” or “requireAdministrator” the Security Shield Icon will appear.

版权声明:本文为博主原创文章,未经博主允许不得转载。

时间: 2024-08-08 09:26:05

UAC的相关文章

[C#]解决程序Vista/Win7下因UAC导致的读写错误

在微软的操作系统中,vista和win7加入了UAC的功能,UAC(User Account Control,用户帐户控制)是微软为提高系统安全而在Windows Vista中引入的新技术,它要求用户在执行可能会影响计算机运行的操作或执行更改影响其他用户的设置的操作之前,提供权限或管理员‌密码.通过在这些操作启动前对其进行验证,UAC 可以帮助防止恶意软件和间谍软件在未经许可的情况下在计算机上进行安装或对计算机进行更改. 如图中所示,不属于 Windows 的一部分的程序需要您的许可才能启动.它

JAVA &ldquo;Run as administrator&rdquo; &ldquo;UAC disabled&rdquo; alternative solution

Technorati 标签: psexec,run as administrator,UAC java.io.IOException: Cannot run program "psexec.exe": CreateProcess error=740, The requested operation requires elevation    at java.lang.ProcessBuilder.start(Unknown Source)    at java.lang.Runtime

[转]Win7 UAC的安全、兼容及权限

http://www.cnblogs.com/mydomain/archive/2010/11/24/1887132.html 网上关于这个问题讨论较多,但也不外乎几种方法.总结一下,如附中.顺便了解一个UAC. UAC,全称User Account Control(用户帐户控制) System Safe Monitor(主机入侵防御系统) UAC是如何工作的[3] 我 们可以简单的把UAC当作权限临时重分配的工具.在默认情况下,所有的非系统核心进程都只拥有标准权限,这一权限不能对系统关键区域进

命令行 uac

reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f 命令行 uac,布布扣,bubuko.com

UAC相关问题分析--使用管理员权限打开VisualStudio,无法访问网络磁盘,无法拖拽文件

搬运自http://wurang.me/2014/06/17/uac-problems.html [问题产生] 问题最初是在administrator权限下,visual studio 打开网络磁盘下的文件报错.经过几次调试,最终发现是问题是在管理员权限下,vs无法访问网络磁盘. Console.Write( System.IO.File.Exists(path)); 该结果返回False.为了确认是由于权限问题引起,使用非管理员权限打开vs,运行上面的程序,结果返回True. 至此问题确立:w

[2016-03-31][跳过UAC弹框提示]

把程序C盘或者(C盘App Data)文件夹,运行不出现UAC提示(第一次以管理员身份运行,会提示,之后就不会了) 来自为知笔记(Wiz)

关闭WIN10的UAC/自动更新/杀毒软件(兼容WIN7/8/8.1)

第一部分:禁用wuauserv服务以及关闭UAC(保存为DW10UD.REG) Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\wuauserv] "start"=dword:4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] "EnableL

QT使用UAC(经过验证)

网上有很多manifest的版本,mingw与vs系列也有不同的解决方案,不管那么多,我是使用这篇文章解决这个问题的: So it turns out that I had another bug that caused the non-elevated running branch to run in all cases. The model I described in the post works. To avoid Windows infering the need for elevat

文件拖拽功能失效,原来是UAC把它过滤了

碰到这样一个问题,文件拖拽功能在没有以管理员身份运行的时候是正常的,但是一旦使用管理员身份运行,这个功能就失效了,搜索了好久总算找到原因了. 在window visa以上版本里引入了用户账户控制(UAC),在管理员权限上会过滤掉一些窗口消息,文件拖拽正好也也被过滤了,解决的方法就是使用ChangeWindowMessageFilterEx()解除过滤 //解除window7以上窗口对该消息的过滤 ChangeWindowMessageFilterEx(hwndDlg, WM_DROPFILES,

在 远程桌面 权限不足无法控制 UAC 提示时,可使用 计划任务 绕开系统的 UAC 提示

就是记录一下,在远程的时候,很可能远程软件没有以管理员身份运行,或者其它原因,操作会被系统阻止,UAC 会进行提示,但是远程软件目前是无法操作的.(以下方法在 Windows 7 中测试通过) 可以通过 计划任务 来绕开 UAC 提示,记得在新建计划任务的时候,选择"使用最高权限运行" 然后"操作"选项卡里面添加一个运行软件,就是那个要用管理员身份运行的软件 然后可以用触发器启动任务,也可以直接手动启动任务,手动启动任务的话,记得勾上按需启动 然后刷新一下计划任务列