Firefox – How to distributive FireFox install with NTLM Authentication for Intranet Sites

The following process has been tested and confirmed as working with Firefox 9.0.1 and SCCM R3 on Windows XP x86, Windows 7 x86 and Windows x64.

It does the following tasks:

  • Install Firefox 9 silently
  • Configures two websites for automatic NTLM authentication (for new and existing users)

It will allow you to automatically authenticate to your local Intranet site (if it supports NTLM authentication), for example sharepoint.

To automatically configure settings for all users you can create a ‘configuration file’ and enter in the required settings.
This article goes through the process of creating the configuration file (mozilla.cfg) and setting the proxy server settings.

Having troubles with the instructions?   Take a look at our example download:

Full Download: http://www.itsupportguides.com/downloads/Firefox901SilentInstallNTLM.zip

How to create a Firefox 10 custom installation:

  1. Create a temporary working folder for saving the files into (for example, create C:\TEMP\Firefox)
  2. SCCM-Firefox1
  3. Download the latest install file at http://www.mozilla.com/firefox. Save to C:\TEMP\Firefox
  4. Create a new text file called ‘override.ini’ and copy in the following information:
[XRE]
 EnableProfileMigrator=false
  1. Create a new text file called ‘local-settings.js’ and copy in the folling information:
pref("general.config.obscure_value", 0);
 pref("general.config.filename", "mozilla.cfg");
  1. Create a new text file called ‘mozilla.cfg’ and copy in the following information: (replace settings as required by your organisation)
//Firefox Default Settings
// set Firefox Default homepage
pref("browser.startup.homepage","http://www.mockbox.net");
// disable default browser check
pref("browser.shell.checkDefaultBrowser", false);
// disable application updates
pref("app.update.enabled", false)
// disables the 'know your rights' button from displaying on first run 
pref("browser.rights.3.shown", true);
// disables the request to send performance data from displaying
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
// authenticate to intranet sites
pref("network.automatic-ntlm-auth.allow-proxies", true);
pref("network.automatic-ntlm-auth.trusted-uris", "yoursite.org,othersite.com")
  1. Create a new text file called ‘install.cmd’ and copy in the following information
@echo off
REM==========================================
REM Install FireFox 8.0.1
REM==========================================
REM Date : 27 Dec 2011
REM Author : mockbox.net
REM .
REM Script Details:
REM --------------
REM This script will:
REM       + silently install or upgrade Firefox 9.0.1
REM       + configure proxy server settings for all users
REM       + Works for Windows XP / 7 32-bit and 64-bit
REM .
REM===========================================
echo Installing Firefox - Please Wait.
echo Window will close after install is complete

REM Install Firefox 9.0.1
“%~dp0Firefox Setup 9.0.1.exe” -ms

REM Install 32-bit customisations
if exist “%programfiles%\Mozilla Firefox\” copy /Y “%~dp0override.ini” “%programfiles%\Mozilla Firefox\”
if exist “%programfiles%\Mozilla Firefox\” copy /Y “%~dp0mozilla.cfg” “%programfiles%\Mozilla Firefox\”
if exist “%programfiles%\Mozilla Firefox\” copy /Y “%~dp0local-settings.js” “%programfiles%\Mozilla Firefox\defaults\pref”

REM Install 64-bit customisations
if exist “%ProgramFiles(x86)%\Mozilla Firefox\” copy /Y “%~dp0override.ini” “%ProgramFiles(x86)%\Mozilla Firefox\”
if exist “%ProgramFiles(x86)%\Mozilla Firefox\” copy /Y “%~dp0mozilla.cfg” “%ProgramFiles(x86)%\Mozilla Firefox\”
if exist “%ProgramFiles(x86)%\Mozilla Firefox\” copy /Y “%~dp0local-settings.js” “%ProgramFiles(x86)%\Mozilla Firefox\defaults\pref”

 

  1. Copy the Firefox install file, override.ini, mozilla.cfg, local-settings.js and install.cmd to your software package share
  2. SCCM-Firefox2
  3. You can now create your SCCM package or deploy the software by using install.cmd.

More Firefox configurations:

Please refer to the following articles for some more common customisations:

For more information on what else can be configured in the mozilla.cfg enter “about:config” into your Firefox address bar. It will list many of the accepted configuration options which you can modify using this file.

SCCM-Firefox3