# 用户账户控制

**用户账户控制**（User Account Control，UAC）是[微软 Windows](https://www.edgepedia.org/zh/microsoft-windows) 的一项安全功能，自 [Windows Vista](https://www.edgepedia.org/zh/windows-vista) 起引入。该功能默认以标准用户令牌运行所有用户（包括管理员），并要求进程在获得管理员权限执行操作之前，必须得到明确同意或提供凭据。<sup>[1](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/)</sup><sup> • </sup><sup>[2](https://learn.microsoft.com/en-us/windows/win32/dxtecharts/user-account-control-for-game-developers)</sup> 当某项操作需要管理员级权限时，UAC 会通知用户，用户可以选择批准或拒绝；该功能限制了恶意代码以管理员权限执行操作的能力。<sup>[1](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/)</sup>

| 关键事实 | 详情 |
|---|---|
| 引入版本 | Windows Vista（2007）；存在于 Windows 10、Windows 11 以及 Windows Server 2016 至 2025<sup>[2](https://learn.microsoft.com/en-us/windows/win32/dxtecharts/user-account-control-for-game-developers)</sup><sup> • </sup><sup>[1](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/)</sup> |
| 核心机制 | 管理员在登录时获得两个访问令牌：完整管理员令牌和经过过滤的标准用户令牌；桌面及所有子进程由过滤后的令牌启动<sup>[3](https://www.dejavu.org/cgi-bin/get.cgi?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D89654&ver=93)</sup> |
| 提升提示 | 默认显示在安全桌面上，只有 Windows 进程可以访问该桌面；从 Windows Server 2019 起，无法在该桌面粘贴剪贴板内容<sup>[4](https://learn.microsoft.com/en-gb/windows/security/application-security/application-control/user-account-control/how-it-works)</sup> |
| 安全边界状态 | 微软不将同桌面提升视为安全边界；它可以被同一桌面上的非特权软件劫持<sup>[5](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/disable-user-account-control)</sup> |
| 已知绕过方式 | UACMe 工具列出了 81 种获取管理员权限的独立技术，其中一些在最新的 Windows 11 中仍未修复<sup>[6](https://projectzero.google/2026/26/windows-administrator-protection.html)</sup> |
| 后继机制 | 管理员保护（Administrator Protection）在 Windows 11 25H2 中引入，旨在以更健壮、可加固的提升系统取代 UAC<sup>[6](https://projectzero.google/2026/26/windows-administrator-protection.html)</sup> |
| 默认配置 | UAC 默认启用；默认滑块级别仅在应用尝试更改计算机时发出通知<sup>[1](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/)</sup><sup> • </sup><sup>[7](https://support.microsoft.com/en-gb/windows/security/user-account-control-settings)</sup> |

## 为何创建

在 Windows Vista 之前，大多数 Windows 用户以管理员身份运行。应用程序经常要求过高的权限：它们检查管理员令牌，请求受保护位置的全部访问权，或者即便不需要此类访问也会写入 `%ProgramFiles%`、`%Windir%` 和 `HKEY_LOCAL_MACHINE\Software`。[Windows 2000](https://www.edgepedia.org/zh/windows-2000) 和 [Windows XP](https://www.edgepedia.org/zh/windows-xp) 默认将每个新账户创建为管理员，因此“日期和时间”[控制面板](https://www.edgepedia.org/zh/control-panel-windows)等关键组件对标准用户无法正常工作，而希望实现最小权限计算的管理员不得不维护两个独立账户并在其间切换。<sup>[3](https://www.dejavu.org/cgi-bin/get.cgi?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D89654&ver=93)</sup>

UAC 是微软给出的答案：一项基于 [Windows NT](https://www.edgepedia.org/zh/windows-nt) 安全架构、旨在简化企业和家庭中标准用户桌面部署的技术。其目标是让应用程序运行时使用的默认令牌模拟 Users 组成员的令牌。<sup>[3](https://www.dejavu.org/cgi-bin/get.cgi?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D89654&ver=93)</sup><sup> • </sup><sup>[8](https://learn.microsoft.com/en-us/archive/msdn-magazine/2007/january/teach-your-apps-to-work-with-windows-vista-user-account-control)</sup>

## 工作原理

**令牌过滤。** 在交互式登录期间，本地安全机构评估用户的令牌。如果用户属于 Administrators 等特权组，或持有强大的特权，Windows 会创建两个令牌：由 LSA 保存的完整令牌，以及权限大致相当于标准用户的过滤令牌。对于管理员，过滤令牌中的 Administrators 组成员身份被设为仅拒绝，并移除影响计算机的特权。桌面会话和资源管理器以过滤令牌启动，因此正常启动的每个程序都继承标准用户权限。UAC 不影响服务、网络或批处理登录。<sup>[8](https://learn.microsoft.com/en-us/archive/msdn-magazine/2007/january/teach-your-apps-to-work-with-windows-vista-user-account-control)</sup><sup> • </sup><sup>[5](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/disable-user-account-control)</sup>

**提升。** 当标记为需要管理员权限的进程启动时，UAC 会显示提示。Administrators 组成员看到的是同意界面，点击即可批准；标准用户看到的是凭据界面，必须提供管理员凭据。如果用户批准，应用程序信息服务会以完全特权令牌创建该进程；如果用户拒绝，则不执行该操作。<sup>[8](https://learn.microsoft.com/en-us/archive/msdn-magazine/2007/january/teach-your-apps-to-work-with-windows-vista-user-account-control)</sup><sup> • </sup><sup>[1](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/)</sup> 大部分 UAC 验证逻辑位于应用程序信息（AppInfo）服务中。<sup>[9](https://www.elastic.co/security-labs/threat-command/exploring-windows-uac-bypasses-techniques-and-detection-strategies)</sup>

**安全桌面。** 默认情况下，同意和凭据提示显示在安全桌面上，这是一个独立的桌面，会使用户桌面变暗，且只有 Windows 进程可以访问，从而挫败普通的用户界面欺骗。恶意软件可以呈现仿冒界面，但当管理员提示策略设为“提示同意”时，即使用户在仿冒界面上选择“是”，恶意软件也不会获得提升；在“提示凭据”模式下，呈现仿冒界面的恶意软件可能窃取密码，但仍无法获得提升的权限。<sup>[4](https://learn.microsoft.com/en-gb/windows/security/application-security/application-control/user-account-control/how-it-works)</sup>

**虚拟化。** 对于写入受保护位置但未请求提升的旧式 32 位应用程序，Windows 会静默地将文件和注册表写入重定向到每用户位置：对 `HKEY_LOCAL_MACHINE\Software\AppKey1` 的写入会落到每用户的 VirtualStore 中，读取时呈现合并视图，其中虚拟值优先。虚拟化对 64 位进程、服务等非交互进程、内核模式进程以及在清单中声明请求执行级别的进程禁用。微软将其描述为一种过渡性兼容技术，旨在随应用程序合规化而移除。<sup>[10](https://learn.microsoft.com/windows/win32/sysinfo/registry-virtualization)</sup><sup> • </sup><sup>[2](https://learn.microsoft.com/en-us/windows/win32/dxtecharts/user-account-control-for-game-developers)</sup>

## 配置

用户可以通过“控制面板 > 系统和安全 > 更改用户账户控制设置”更改 UAC 行为，在通知级别之间移动滑块。<sup>[7](https://support.microsoft.com/en-gb/windows/security/user-account-control-settings)</sup> 文档记录的级别包括：“始终通知”，对程序更改和 Windows 设置更改都发出提示，并冻结其他任务直到用户响应；“仅当应用尝试更改我的计算机时通知我”，此为默认值；以及一个不使桌面变暗的级别，仅在变暗速度缓慢时推荐使用。<sup>[7](https://support.microsoft.com/en-gb/windows/security/user-account-control-settings)</sup> 在 Windows Server 上，“从不通知”设置会禁用 UAC。<sup>[11](https://learn.microsoft.com/ga-ie/windows/win32/secauthz/user-account-control)</sup>

组策略控制 `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System` 下的各项设置，包括管理员是否以管理员批准模式运行、提升提示是否进入安全桌面，以及写入失败是否虚拟化。<sup>[12](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/settings-and-configuration)</sup><sup> • </sup><sup>[8](https://learn.microsoft.com/en-us/archive/msdn-magazine/2007/january/teach-your-apps-to-work-with-windows-vista-user-account-control)</sup> 禁用管理员批准模式会禁用所有 UAC 功能：不创建过滤令牌，虚拟化停止，且所有区域的保护模式 Internet Explorer 被禁用。<sup>[5](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/disable-user-account-control)</sup>

## 历史与可用性

在 Windows Vista 中，任何请求提升的应用程序都会显示提示，包括控制面板和资源管理器等内置组件，因此更改系统设置的管理员经常会看到多个连续提示。<sup>[13](https://techcommunity.microsoft.com/blog/microsoft-security-blog/evolving-the-windows-user-model-%E2%80%93-a-look-to-the-past/4369642)</sup> [Windows 7](https://www.edgepedia.org/zh/windows-7) 为受保护管理员增加了两个中间设置，并将“仅在程序进行更改时通知”设为默认值，这会自动提升管理员自身所做的更改，同时仍使用安全桌面。<sup>[14](https://learn.microsoft.com/en-us/windows/win32/uxguide/winenv-uac)</sup> Windows 7 还引入了自动提升，允许选定的微软二进制文件在没有提示的情况下提升，这减少了提示疲劳，但也创造了一条通过重新利用这些二进制文件静默获取管理员权限的途径。<sup>[6](https://projectzero.google/2026/26/windows-administrator-protection.html)</sup>

提示风暴带来了可衡量的代价。微软自己的数据显示，在 Vista 初始版本中，用户自动批准了 89% 的 UAC 提示，在 Vista Service Pack 1 中为 91%；另一项研究发现，一半用户会允许 UAC 提示背后的模拟恶意操作，另有 20% 的用户因为禁用了 UAC 而从未看到提示。<sup>[15](https://www.cs.auckland.ac.nz/~pgut001/pubs/book.pdf)</sup>

## 安全边界状态与绕过

微软明确不将 UAC 视为安全边界。公司文档指出，同桌面提升可以被同一桌面上运行的非特权软件劫持，应被视为便利功能；从安全角度看，受保护的管理员等同于管理员。相比之下，通过快速用户切换登录到独立会话确实涉及安全边界。<sup>[5](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/disable-user-account-control)</sup> 这一定位解释了为何大多数 UAC 绕过没有获得 CVE 或补丁：绕过使受限进程静默获得管理员权限，而微软并未优先修复它们。<sup>[6](https://projectzero.google/2026/26/windows-administrator-protection.html)</sup><sup> • </sup><sup>[16](https://projectzero.google/2026/02/windows-administrator-protection.html)</sup>

UAC 绕过会在没有提示的情况下静默提升完整性级别，通常通过搭载已提升的 Windows 功能实现；在管理员账户下运行的大多数恶意软件默认处于中等完整性，这会阻止对更高完整性资源的写入。<sup>[9](https://www.elastic.co/security-labs/threat-command/exploring-windows-uac-bypasses-techniques-and-detection-strategies)</sup> UACMe 仓库编目了 81 种技术，其中一部分已通过主要操作系统更新修复，尽管微软从未正式确认何时修复了某个绕过；截至 2026 年，影响最新 [Windows 11](https://www.edgepedia.org/zh/windows-11) 的静默绕过仍未修复。<sup>[6](https://projectzero.google/2026/26/windows-administrator-protection.html)</sup> 谷歌 Project Zero 的詹姆斯·福肖（James Forshaw）——一位专注于 Windows 操作系统安全的安全研究员——记录了通过 UI Access 进程绕过较新的管理员保护功能的方法，包括滥用 `RAiLaunchAdminProcess` RPC 方法以及通过用户控制的注册表值重定向的 DLL 加载。<sup>[16](https://projectzero.google/2026/02/windows-administrator-protection.html)</sup>

## 管理员保护

Windows 11 25H2 引入了管理员保护，其既定目标是以更健壮、可加固的系统取代 UAC，仅在必要时授予管理员权限。它借鉴了已用于非 Administrators 组成员标准用户的更强的“越肩”提升模型，在该模型中用户必须输入单独的本地管理员账户凭据：配置文件数据不再与提升的上下文共享，受限用户无法获取或模拟管理员的令牌，且不支持微软二进制文件的自动提升。截至 2025 年 12 月 1 日，微软在处理应用程序兼容性问题期间已禁用该功能。研究人员的评估是，如果默认启用，它在安全性上优于管理员批准式 UAC，尽管恶意软件仍可通过说服用户接受提示来获得管理员权限。<sup>[6](https://projectzero.google/2026/26/windows-administrator-protection.html)</sup>

## References

1. [User Account Control overview, Microsoft Learn](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/)
2. [User Account Control for Game Developers, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/dxtecharts/user-account-control-for-game-developers)
3. [Windows Vista Application Development Requirements for UAC, Microsoft (archived)](https://www.dejavu.org/cgi-bin/get.cgi?url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D89654&ver=93)
4. [How User Account Control works, Microsoft Learn](https://learn.microsoft.com/en-gb/windows/security/application-security/application-control/user-account-control/how-it-works)
5. [How to disable User Account Control (UAC) on Windows Server, Microsoft Learn](https://learn.microsoft.com/en-us/troubleshoot/windows-server/windows-security/disable-user-account-control)
6. [Bypassing Windows Administrator Protection, James Forshaw, Google Project Zero (2026)](https://projectzero.google/2026/26/windows-administrator-protection.html)
7. [User Account Control settings, Microsoft Support](https://support.microsoft.com/en-gb/windows/security/user-account-control-settings)
8. [Teach Your Apps To Work With Windows Vista User Account Control, MSDN Magazine (2007)](https://learn.microsoft.com/en-us/archive/msdn-magazine/2007/january/teach-your-apps-to-work-with-windows-vista-user-account-control)
9. [Exploring Windows UAC Bypasses: Techniques and Detection Strategies, Elastic Security Labs](https://www.elastic.co/security-labs/threat-command/exploring-windows-uac-bypasses-techniques-and-detection-strategies)
10. [Registry Virtualization, Microsoft Learn](https://learn.microsoft.com/windows/win32/sysinfo/registry-virtualization)
11. [User Account Control (Authorization), Microsoft Learn](https://learn.microsoft.com/ga-ie/windows/win32/secauthz/user-account-control)
12. [User Account Control settings and configuration, Microsoft Learn](https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/settings-and-configuration)
13. [Evolving the Windows User Model – A Look to the Past, Microsoft Security Blog](https://techcommunity.microsoft.com/blog/microsoft-security-blog/evolving-the-windows-user-model-%E2%80%93-a-look-to-the-past/4369642)
14. [User Account Control (Design basics), Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/uxguide/winenv-uac)
15. [Usability chapter (Peter Gutmann), *Engineering Security*](https://www.cs.auckland.ac.nz/~pgut001/pubs/book.pdf)
16. [Bypassing Administrator Protection by Abusing UI Access, James Forshaw, Google Project Zero (2026)](https://projectzero.google/2026/02/windows-administrator-protection.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › 操作系统

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/user-account-control

English original: https://www.edgepedia.org/user-account-control
