如何使用注册表编辑器为 Microsoft Edge 设置 on/off Adob​​e Flash 设置?

How to turn on/off Adobe Flash settings for Microsoft Edge using registry editor?

尝试使用 Windows 注册表 (Regedit) 修改在 Microsoft Edge 中打开 Adob​​e Flash 设置,但它没有反映在浏览器中。不寻求手动或 GPO 方法,因为它最终需要大规模完成。

偶然发现并尝试了这个, To enable Flash Policy for Edge ,也尝试了以下方法:

$RegistryPath = "HKCU:\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Addons"

New-ItemProperty -Path $RegistryPath -Name "FlashPlayerEnabled" -Value "1" -PropertyType DWORD -Force | Out-Null

(必须创建 Addons 文件夹,因为它不可用)。 但是,它们似乎并未反映浏览器的变化。还尝试通过在浏览器中手动转动 on/off 来导出和比较注册表,以查看正在更改的值,甚至没有显示任何差异。

您在原文中提到的链接 post 显示了正确的注册表项设置。

Path: HKLM\Software\Policies\Microsoft\MicrosoftEdge\Addons

Value name: FlashPlayerEnabled

Value type: REG_DWORD

我已经对它进行了测试,它正在为 Edge 旧版浏览器启用/禁用 flash。

参考:

Allow Adobe Flash

编辑:-

正如您告知的那样,您想为 MS Edge (Chromium) 浏览器设置策略。

我发现了一些与 Flash 相关的政策,可以帮助您解决问题。

  1. RunAllFlashInAllowMode

  2. Default Adobe Flash setting

  3. Allow the Adobe Flash plug-in on specific sites

  4. Block the Adobe Flash plug-in on specific sites

您可以尝试参考文档,尝试设置自己想要的策略。