开发人员工具Developer tools

备注

你已获得 Microsoft Edge 版本 45 及更早版本的文档。You've reached the documentation for Microsoft Edge version 45 and earlier. 若要查看 Microsoft Edge 版本 77 或更高版本的文档,请转到 Microsoft Edge 文档登录页面To see the documentation for Microsoft Edge version 77 or later, go to the Microsoft Edge documentation landing page.

默认情况下,Microsoft Edge 允许用户使用 F12 开发人员工具并访问 about:flags 页面。Microsoft Edge, by default, allows users to use the F12 developer tools as well as access the about:flags page. 可防止用户使用 F12 开发人员工具或访问 about:flags 页面。You can prevent users from using the F12 developer tools or from accessing the about:flags page.

除非策略中另有说明,否则你可以在组策略编辑器的以下位置找到 Microsoft Edge 组策略设置:You can find the Microsoft Edge Group Policy settings in the following location of the Group Policy Editor unless otherwise noted in the policy:

      Computer Configuration\Administrative Templates\Windows Components\Microsoft Edge\      Computer Configuration\Administrative Templates\Windows Components\Microsoft Edge\

允许开发人员工具Allow Developer Tools

支持的版本:Windows 10 版 Microsoft Edge,1511 版本或更高版本Supported versions: Microsoft Edge on Windows 10, version 1511 or later
默认设置:已启用(允许)Default setting: Enabled (Allowed)

Microsoft Edge 允许用户在默认情况下使用 F12 开发人员工具来构建和调试网页。Microsoft Edge allows users to use the F12 developer tools to build and debug web pages by default. 使用此策略,你可以配置 Microsoft Edge 以防止用户使用 F12 开发人员工具。With this policy, you can configure Microsoft Edge to prevent users from using the F12 developer tools.

支持的数值Supported values

组策略Group Policy MDMMDM 注册表Registry 描述Description 最受限制Most restricted
DisabledDisabled 00 00 已阻止Prevented 最受限制的数值
已启用Enabled 11 11 允许Allowed

ADMX 信息和设置ADMX info and settings

ADMX 信息ADMX info

  • GP 中文名称: 允许使用开发人员工具GP English name: Allow Developer Tools
  • GP 名称: AllowDeveloperToolsGP name: AllowDeveloperTools
  • GP 路径: Windows Components/Microsoft EdgeGP path: Windows Components/Microsoft Edge
  • GP ADMX 文件名: MicrosoftEdge.admxGP ADMX file name: MicrosoftEdge.admx

MDM 设置MDM settings

  • MDM 名称: Browser/AllowDeveloperToolsMDM name: Browser/AllowDeveloperTools
  • 受支持的设备: 桌面设备Supported devices: Desktop
  • URI 完整路径:./Vendor/MSFT/Policy/Config/Browser/AllowDeveloperToolsURI full Path: ./Vendor/MSFT/Policy/Config/Browser/AllowDeveloperTools
  • 数据类型: 整数Data type: Integer

注册表设置Registry settings

  • 路径: HKLM\Software\Policies\Microsoft\MicrosoftEdge\F12Path: HKLM\Software\Policies\Microsoft\MicrosoftEdge\F12
  • 值名称: AllowDeveloperToolsValue name: AllowDeveloperTools
  • 值类型: REG_DWORDValue type: REG_DWORD

阻止对 about:flags 页面的访问Prevent access to the about:flags page

支持的版本:Windows 10 版 Microsoft Edge,1607 版本或更高版本Supported versions: Microsoft Edge on Windows 10, version 1607 or later
默认设置:已禁用或未配置(允许)Default setting: Disabled or not configured (Allowed)

默认情况下,用户可以访问 Microsoft Edge 中的 about:flags 页面,该页面用于更改开发人员设置和启用实验性功能。By default, users can access the about:flags page in Microsoft Edge, which is used to change developer settings and enable experimental features. 启用此策略将阻止用户访问 about:flags 页面。Enabling this policy prevents users from accessing the about:flags page.

支持的数值Supported values

组策略Group Policy MDMMDM 注册表Registry 描述Description 最受限制Most restricted
已禁用或未配置Disabled or not configured
(默认值)(default)
00 00 允许Allowed
已启用Enabled 11 11 已阻止Prevented 最受限制的数值

ADMX 信息和设置ADMX info and settings

ADMX 信息ADMX info

  • GP 中文名称: 阻止访问 Microsoft Edge 中的 about:flags 页面GP English name: Prevent access to the about:flags page in Microsoft Edge
  • GP 名称: PreventAccessToAboutFlagsInMicrosoftEdgeGP name: PreventAccessToAboutFlagsInMicrosoftEdge
  • GP 路径: Windows Components/Microsoft EdgeGP path: Windows Components/Microsoft Edge
  • GP ADMX 文件名: MicrosoftEdge.admxGP ADMX file name: MicrosoftEdge.admx

MDM 设置MDM settings

  • MDM 名称: Browser/PreventAccessToAboutFlagsInMicrosoftEdgeMDM name: Browser/PreventAccessToAboutFlagsInMicrosoftEdge
  • 支持的设备: 桌面版和移动设备Supported devices: Desktop and Mobile
  • URI 完整路径:./Vendor/MSFT/Policy/Config/Browser/PreventAccessToAboutFlagsInMicrosoftEdgeURI full path: ./Vendor/MSFT/Policy/Config/Browser/PreventAccessToAboutFlagsInMicrosoftEdge
  • 数据类型: 整数Data type: Integer

注册表设置Registry settings

  • 路径: HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\MainPath: HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main
  • 值名称: PreventAccessToAboutFlagsInMicrosoftEdgeValue name: PreventAccessToAboutFlagsInMicrosoftEdge
  • 值类型: REG_DWORDValue type: REG_DWORD