This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Mulongo oyo etiyamaki na archive. Tuna motuna mosusu soki osengeli na lisalisi

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>

Solution eye eponami

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.

Tanga eyano oyo ndenge esengeli 👍 0

All Replies (2)

more options

Solution eye oponami

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 
   }

Ezalaki modifié na eric.bjorgan