edgepedia

技术与人造世界 / 计算技术与数字系统 / 软件与编程 / Operating systems

综合 · Edgepedia阅读需 6 分钟

控制面板(Windows)

阅读英文原文

控制面板(Control Panel)是微软Windows的一个组件,最早随1985年的Windows 1.0引入,它汇集了称为“小程序”的小型配置程序,用于调整系统和用户设置,如显示、声音、网络、用户账户和已安装的软件。1 • 2自2012年起,微软一直在将其功能迁移到现代化的“设置”应用,但控制面板在Windows 11中仍然存在。3

关键事实详情
首次出现Windows 1.0,1985年发布1
小程序的本质让用户配置Windows环境的DLL或可执行(.exe)文件,通常通过点击控制面板中的图标来访问2
文件格式.cpl文件是重命名的动态链接库(.dll)文件,导出一个CPlApplet函数4
程序文件Control.exe;一项策略设置可以阻止Control.exe和SystemSettings.exe(分别为控制面板和电脑设置的程序文件)启动5
规范名称自Windows Vista起,内置项目拥有规范名称,可用于API调用或命令行指令以编程方式启动它们6
后继者设置应用,2012年随Windows 8和Windows Server 2012发布3
移除状态微软表示尚无彻底移除控制面板的确定日期7

历史

控制面板随Windows 1.0引入,这是微软1985年为MS-DOS提供的图形环境。1在Windows 3.1中,控制面板程序为CONTROL.EXE,它从同一目录下扩展名为CPL的文件中加载小程序;用户或应用程序也可以通过命令行参数指定要启动的小程序来打开控制面板。8有些扩展文件包含多个小程序,通过索引参数选择运行哪一个。9

在Windows 95中,打印机通过选择控制面板的“打印机”工具来安装,“显示”工具则控制显示器分辨率和调色板大小的配置。10根据对CPL格式的一项技术分析,微软从2006年的Windows Vista开始,将许多CPL小程序迁移到微软管理控制台(MMC)和Windows控制面板框架。11

技术结构

控制面板项目是让用户配置Windows环境的DLL或可执行(.exe)文件。2.cpl文件实际上是重命名的DLL文件,导出一个CPlApplet函数;控制面板调用该函数来初始化小程序、获取并提供有关用户操作的信息,以及卸载小程序。4 • 12开发者必须导出DllMain和CPLApplet入口点,以便控制面板应用程序能够访问这些函数。12Windows Vista取消了DLL限制,允许将控制面板功能嵌入.exe文件。13

注册可以通过在注册表子键HKLM\Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls下添加CPL文件的位置和名称来完成,也可以在HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace下添加小程序的COM类标识符。14自Windows Vista起,Windows附带的项目还被赋予规范名称以便编程启动;自Windows 7和Windows Server 2008 R2起,规范名称可用于组策略中以隐藏特定项目。6

启动小程序

控制面板项目可以直接从命令行执行、通过API调用以编程方式执行,或双击文件执行。4微软的文档说明了如何在命令提示符或“打开”框中键入命令来运行工具;例如,firewall.cpl打开Windows Defender防火墙控制面板小程序,它提供配置Windows防火墙的基本功能,而高级配置则使用Windows Defender防火墙高级安全MMC管理单元。15 • 16

管理员可以限制访问:一项策略设置阻止Control.exe和SystemSettings.exe(分别为控制面板和电脑设置的程序文件)启动,从而将控制面板从“开始”屏幕、文件资源管理器和搜索结果中移除。5

向设置应用迁移

微软于2012年随Windows 8和Windows Server 2012发布了设置应用。32015年3月,微软的加布里埃尔·奥尔(Gabriel Aul)在Twitter上表示:“假以时日,是的,我们预计设置应用将涵盖此前控制面板的所有功能。”17迁移在Windows 10和Windows 11中进展缓慢:2021年Windows 11发布时,许多高级选项仍会打开控制面板或旧式对话框;五年后,微软继续扩展设置应用,尽管一些高级工具和旧版配置页面仍然存在。18

各项功能仍在陆续迁移。2024年,Windows预览体验成员在“设置 > 系统 > 显示”下获得了全新的颜色管理设置页面,取代了此前通过颜色管理控制面板更改设置的方式。192025年,微软为设置应用增加了设计升级和约16项新功能,同时弥合与控制面板之间的差距,包括将更多旧版功能从控制面板移植到“日期和时间”页面。202026年,此前只能通过旧版控制面板实现的用户账户重命名功能被添加到设置应用中。21

尽管如此,控制面板在Windows 11中仍然可用,微软的一则支持答复称尚无彻底移除它的确定日期。21 • 7一些旧版组件正被逐一淘汰;系统映像备份解决方案,也称为“备份和还原(Windows 7)”旧版控制面板,被列入了弃用的Windows功能之中。22微软的一位CVP解释了这一做法:“当我们最终把功能都放进设置应用后,我们就会弃用控制面板中那些不再需要该功能的地方。”23

安全相关性

控制面板的加载机制也是一种攻击技术。MITRE ATT&CK将“系统二进制代理执行:控制面板”列为子技术T1218.002:攻击者可以将恶意DLL文件的扩展名改为.cpl,并在HKCU\Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls下注册它们。当控制面板运行时,已注册的DLL会通过其DllEntryPoint被加载和运行,无论它们是否遵循CPL文件规范或提供CPlApplet函数;缺少CPlApplet导出的CPL文件无法直接运行。4

References

  1. Windows Operating System history (PDF), Maharaja College
  2. Implementing Control Panel Items, Microsoft Learn
  3. Settings vs Control Panel in Windows: Which One to Use, Windows Explained
  4. System Binary Proxy Execution: Control Panel, Sub-technique T1218.002, MITRE ATT&CK
  5. ADMX_ControlPanel Policy CSP, Microsoft Learn
  6. Canonical Names of Control Panel Items, Microsoft Learn
  7. When will the control panel be removed and all functionality migrated to the Settings app?, Microsoft Q&A
  8. Microsoft Windows 3.1 SDK Programmer's Reference Volume 1 (1992), bitsavers
  9. Livingston, Windows GIZMOS (1993), bitsavers
  10. Introducing Microsoft Windows 95 (1995), bitsavers
  11. The Windows Control Panel CPL File Format: Technical Analysis, FileTypeDB
  12. Windows Embedded CE 6.0 MCTS Exam Preparation Kit, Chapter 3 (PDF), Microsoft Download Center
  13. Control Panel applet, viksoe.dk
  14. The Windows Concept Journey (PDF), The Learning Journey
  15. How to run Control Panel tools by typing a command, Microsoft Support
  16. Windows Firewall Tools, Microsoft Learn
  17. Microsoft to replace the traditional Control Panel with the Windows 10 Settings app, Windows Central
  18. The Windows 11 Microsoft shipped in 2021 and the Windows 11 we have in 2026 are worlds apart, Windows Central
  19. Announcing Windows 11 Insider Preview Build 26052, Windows Insider Blog
  20. Windows 11 Settings app gets major upgrades in 25H2, Windows Central
  21. The Windows Control Panel is one step closer to death as account rename option makes its way to Windows 11's Settings app, Windows Central
  22. Deprecated features in the Windows client, Microsoft Learn
  23. "Control Panel gets tricky" Microsoft CVP explains why killing Windows legacy code takes so long, Windows Central

Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026

© 2026 Biostate AI。依据 Edgepedia Community License,注明出处即可免费使用。 嵌入参考卡片。

报告错误

控制面板(Windows)

请至少选择一个原因。