Configure Firefox on Windows with a Fileset

What this recipe does

This Fileset deploys Firefox AutoConfig files so you can set or lock browser preferences such as the home page, first-run behavior, telemetry, and update settings.

Choose the current Mozilla management method
Mozilla recommends Windows Group Policy for settings covered by policy and AutoConfig for preferences that are not. The downloadable Fileset uses AutoConfig. If you edit autoconfig.js for Firefox 60 or later, save it with Unix LF line endings.

Ingredients

Directions

// Any comment. You must start the file with a comment!
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);
// Any comment. You must start the file with a comment!
 
// Disable updater
lockPref("app.update.enabled", false);
lockPref("app.update.auto", false);
lockPref("app.update.mode", 0);
lockPref("app.update.service.enabled", false);
 
// Set Homepage and stop Mozilla startup pages
lockPref("browser.startup.firstrunSkipsHomepage", false);
pref("browser.startup.homepage","http://www.filewave.com");
lockPref("browser.startup.homepage_override.mstone", "ignore");
 
// Disable Privacy telemetry
lockPref("datareporting.policy.firstRunURL",);
lockPref("datareporting.healthreport.service.enabled", false);
lockPref("datareporting.healthreport.uploadEnabled", false);
lockPref("datareporting.policy.dataSubmissionEnabled", false);
lockPref("toolkit.telemetry.unified", false);

Preference functions

Mozilla documents pref, defaultPref, lockPref, and the other available functions in Customize Firefox using AutoConfig.

pref

pref sets a user preference. Firefox reapplies it at every launch, so a user's change does not persist.

lockPref

lockPref sets and locks a preference so the user cannot change it.

defaultPref

defaultPref sets the default while allowing the user to keep an override until the preference is reset.

Preference Names
Navigating to 'about:config' in the Firefox URL bar will list all possible preference names and their values and types.

Association

Place the Firefox installer and configuration Fileset in a Fileset Group so both reach the same devices.

WvwJnhlfj5hOiWru-embedded-image-2uxlorb0.png

Associating the 'Firefox' Fileset Group will ensure both the Application and Configuration are associated to devices.  

efFgj4LEFVGjAwD4-embedded-image-nzpns6g0.png

When there is an update to Firefox, replace the version in the Fileset Group with the latest version after testing.

ZyZ8R0oAj0GU0Cu7-embedded-image-e7uuulzq.png

The template enables BlockAboutConfig so users cannot bypass the managed preferences through about:config. Confirm that this restriction matches your support policy before rollout.

Related Content


Revision #4
Created 2023-07-13 20:35:42 UTC by Josh Levitsky
Updated 2026-07-16 12:58:50 UTC by Josh Levitsky