Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to configure the following Firefox settings through a script (VBS or batch)

  • default home page
  • default search engine
  • disable auto update

Is this possible?

share|improve this question
up vote 6 down vote accepted

You can do this by creating or manipulating Mozilla preferences files with your preferred scripting language.

For a list of preferences that can be set through these files, see the Mozilla Preferences and about:config documentation, although the ones that correspond to your list appear to be:-

  • browser.startup.homepage (default home page)
  • (default search engine)
  • (enable/disable auto update)

However, depending on your environment, you might find it better to push settings through a custom add-on (see the XPI comments in the Brief Guide to Mozilla Preferences), or through GPO with FirefoxADM or similar.

share|improve this answer
Will FirefoxADM allow you to select your default search engine? – asp316 Jan 17 '12 at 15:39
Click the link to find out! – surfasb Jan 17 '12 at 23:48
I haven't used FADM, but browsing the source, it doesn't appear so. However, you could probably modify it to do so, and contribute your changes back to the project. – Kanji Jan 18 '12 at 0:04

You can override private browser options in a file user.js in the user profiles folder. I use it often to override some options for example pipelining. Firefox needs to be restart after you have update the user.js. If the file user.js doesn't exist you must create one.

share|improve this answer

to literally copy/paste the part of the answer I was looking for (win env.)



user_pref("browser.startup.homepage", "http://www.URL");

my attempts to copy to remote machines with Get-Content/cat string.txt/"String" >> path, ended with garbage being inserted into the prefs.js file due to the escape characters in the string.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.