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

How to I set proxy settings to auto-detect in a script?

  • 1 reply
  • 2 have this problem
  • 10 views
  • Last reply by cor-el

more options

I work in the IT service desk at my school, and I am trying to make a silent install of Firefox 11 for the campus computers. I got everything working, but I need the default proxy settings to be "Auto-Detect Proxy Settings."

I work in the IT service desk at my school, and I am trying to make a silent install of Firefox 11 for the campus computers. I got everything working, but I need the default proxy settings to be "Auto-Detect Proxy Settings."

All Replies (1)

more options

Use a mozilla.cfg file in the Firefox program folder to lock prefs or specify default values.

Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.

pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift

See:

You can use these functions in mozilla.cfg:

defaultPref();  // set new default value
pref();         // set pref, but allow changes in current session
lockPref();     // lock pref, disallow changes