搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox ESR 78.2 not using policies.json

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 於 修改