搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox ESR 78.2 not using policies.json

  • 2 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 eric.bjorgan

more options

I am trying to update Firefox to 78.2 ESR at my organization as well as change from autoconfig.js and mozilla.cfg based configuration (used in Firefox 68 ESR and earlier) to policies.json based configuration with Firefox 78.x ESR. Update will be deployed via SCCM and a PowerShell script.

I have put a policies.json in C:\Program Files\Mozilla Firefox\distrubution\ When I re-install Firefox ESR 78.2 and have the policies.json in place, none of the policies apply. I went so far as to use the Mozilla Firefox Enterprise Policy Generator to make sure the json file is formatted properly.

What I have the script doing is uninstalling any old Firefox versions, clearing out the old config files and putting in the policies.json file in C:\Program Files\Mozilla Firefox\distribution\. When I run Firefox after the update, I get an error "Configuration Error: Failed to read the configuration file. Please contact your system administrator." I can click OK on the error and Firefox launches but without any customizations. The error pops up every time I launch Firefox. I am not aware of any Group Policies in place that manage Firefox.

Can anyone see a mistake I might be making or something I'm missing in my process?

Here is what's in my policies.json file:

{

 "policies": {
   "DisableAppUpdate": true,
   "DisablePocket": true,
   "DontCheckDefaultBrowser": true,
   "Homepage": {
     "StartPage": "homepage",
     "URL": "https://www.google.com"
   },
   "PopupBlocking": {
     "Allow": [
       "https://mn.gov",
       "https://state.mn.us"
     ],
     "Default": true
   }
 }

}

I am trying to update Firefox to 78.2 ESR at my organization as well as change from autoconfig.js and mozilla.cfg based configuration (used in Firefox 68 ESR and earlier) to policies.json based configuration with Firefox 78.x ESR. Update will be deployed via SCCM and a PowerShell script. I have put a policies.json in C:\Program Files\Mozilla Firefox\distrubution\ When I re-install Firefox ESR 78.2 and have the policies.json in place, none of the policies apply. I went so far as to use the Mozilla Firefox Enterprise Policy Generator to make sure the json file is formatted properly. What I have the script doing is uninstalling any old Firefox versions, clearing out the old config files and putting in the policies.json file in C:\Program Files\Mozilla Firefox\distribution\. When I run Firefox after the update, I get an error "Configuration Error: Failed to read the configuration file. Please contact your system administrator." I can click OK on the error and Firefox launches but without any customizations. The error pops up every time I launch Firefox. I am not aware of any Group Policies in place that manage Firefox. Can anyone see a mistake I might be making or something I'm missing in my process? Here is what's in my policies.json file: <code> { "policies": { "DisableAppUpdate": true, "DisablePocket": true, "DontCheckDefaultBrowser": true, "Homepage": { "StartPage": "homepage", "URL": "https://www.google.com" }, "PopupBlocking": { "Allow": [ "https://mn.gov", "https://state.mn.us" ], "Default": true } } } </code>

被采纳的解决方案

You get "Configuration Error: Failed to read the configuration file. Please contact your system administrator." if there is still an autoconfig.js file present that specifies using autoconfig.cfg, so it sounds you didn't cleanup the install script properly.

定位到答案原位置 👍 0

所有回复 (2)

more options

选择的解决方案

You get "Configuration Error: Failed to read the configuration file. Please contact your system administrator." if there is still an autoconfig.js file present that specifies using autoconfig.cfg, so it sounds you didn't cleanup the install script properly.

more options

cor-el,

Thanks for your reply. I did have an old autoconfig.js file but I ALSO had a leftover registry setting to disable auto-update. Looks like registry settings override everything so that was also an issue. After I removed the autoconfig.js and registry setting the policies.json file took effect on next launch of Firefox. Thanks for the tip that I missed something in the cleanup of the old settings. Your reply on a similar thread helped me as well. "GPO works globally for all Firefox installations because it uses the Windows Registry." (I suspect our previous settings weren't working either due to the same issue.)

Fix (PowerShell): If (Test-Path HKLM:Software\Policies\Mozilla\Firefox\) {

   Remove-Item -Path HKLM:Software\Policies\Mozilla -Recurse -Force 
   Remove-Item -Path HKLM:Software\Policies\Mozilla -Force 
   }

由eric.bjorgan于修改