Mozilla Firefox 41.0
So, my question is, is it possible to control Firefox via GPO? If so, can someone point me in the correct direction and provide a link?
Answers (3)
// Mozilla Firefox Lockdown
pref(
"general.config.filename"
,
"custom.cfg"
);
Comments:
-
aragorn.2003, does the custom.cfg in the installation directory override the custom.cfg in the user profile?
I did see you could configure the jscript to point at a prefence config file, but it was located in the user profile directory.
I just want to be sure it will override the users profile pref.cfg or custom.cfg.
Please let me know. - TheInfamousOne 9 years ago-
yes it does. please read the following documentation. https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences - aragorn.2003 9 years ago
-
Thanks aragorn.2003, I'll do some testing and see what happens. - TheInfamousOne 9 years ago
-
aragorn.2003. I had no luck. I created the firefox.js file with the pref("general.config.filename", "custom.cfg"); settings.
I copied this to the installation directory of C;\Program Files (x86)\Mozilla Firfefox.
I also found another website that said if it did not work, to copy it to the default\pref and browser\defaults\preferences.
https://mike.kaply.com/2012/03/15/customizing-firefox-default-preference-files/
I still had no luck. The user preferences seem to be overrriding my config file.
I only added one line to the cfg file for testing which was lockPref("browser.startup.homepage", "www.google.com") while testing.
I used some of the examples from this website for the config files and how to write them.
https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment
Any suggestions? - TheInfamousOne 9 years ago
Top Answer
First create a file named mozilla.cfg with your custom configuration.
Example:
// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
// disable application updates
pref("app.update.enabled", false)
This file needs to be added to "%programfiles%\Mozilla Firefox\" folder inside your package.
Second create a file named local-settings.js and add the below contents.
pref("general.config.obscure_value", 0);
pref("general.config.filename", "mozilla.cfg");
This file needs to be added to "%programfiles%\Mozilla Firefox\defaults\pref" folder inside your package.
Third create a file named override.ini and add the below lines.
[XRE]
EnableProfileMigrator=false
This file needs to be added to "%programfiles%\Mozilla Firefox\" folder inside your package.
Comments:
-
Hi Vigneshwaran4264: I think I've already done everything you've written with the "exception" of creating the "override.ini" file with that configuration.
I'll try this tomorrow and get back to you. Thank you for responding. - TheInfamousOne 9 years ago -
Hi Vigneshwaran4264:
This worked perfect, the only thing I was missing was the overrride.ini file.
Note for other packagers that want to test this. Make sure you delete the userprofile folder before testing the preference files in the installation directory. Once Firefox loads the preferences in the user profile, it will stick and ignore the preference settings above.
So for testing, make sure you delete the Mozilla folder located in C:\Users\%userprofile%\AppData\Local\. Then create the files the 3 files Vigneshwaran4264 mentioned above.
Thanks Vigneshwaran4264 - TheInfamousOne 9 years ago-
:) - apptopack 9 years ago
Let me know. - TheInfamousOne 9 years ago