Hi there,

I searched for hours to get a "ready to use" solution to alter firefox proxy via GPO or script, but I didn't find one.
So I just wrote that little vbscript to change Firefox proxy (or even other settings).
You may even call it via startup-GPO or login script =)

First you have to setup a file named "user.js" like this:
(assuming 192.168.99.244 is your proxy-server)

Code:
user_pref("network.proxy.backup.ftp", "192.168.99.254");
user_pref("network.proxy.backup.ftp_port", 8080);
user_pref("network.proxy.backup.gopher", "192.168.99.254");
user_pref("network.proxy.backup.gopher_port", 8080);
user_pref("network.proxy.backup.socks", "192.168.99.254");
user_pref("network.proxy.backup.socks_port", 8080);
user_pref("network.proxy.backup.ssl", "192.168.99.254");
user_pref("network.proxy.backup.ssl_port", 8080);
user_pref("network.proxy.ftp", "192.168.99.254");
user_pref("network.proxy.ftp_port", 8080);
user_pref("network.proxy.gopher", "192.168.99.254");
user_pref("network.proxy.gopher_port", 8080);
user_pref("network.proxy.http", "192.168.99.254");
user_pref("network.proxy.http_port", 8080);
user_pref("network.proxy.share_proxy_settings", true);
user_pref("network.proxy.socks", "192.168.99.254");
user_pref("network.proxy.socks_port", 8080);
user_pref("network.proxy.socks_remote_dns", true);
user_pref("network.proxy.ssl", "192.168.99.254");
user_pref("network.proxy.ssl_port", 8080);
user_pref("network.proxy.type", 1);
Then put "user.js" it in a folder together with the following vbscript.
Name it ChangeFirefoxSettings.vbs or something like that.
Running the script copies "user.js" in all (if more than one exists) firefox-profiles of the current user:


Code:
FileToCopy = "user.js"

Set oFSO = CreateObject("Scripting.FileSystemObject")

'get AppdataPath
Set WshShell = CreateObject("WScript.Shell")
Set WshSysEnv = WshShell.Environment("PROCESS")

AppdataPath = WshSysEnv("APPDATA") 

FoxProfilePath = AppdataPath & "\Mozilla\Firefox\Profiles\"

' is firefox and user.js present?

if oFSO.FolderExists(FoxProfilePath) AND oFSO.FileExists(FileToCopy) Then

' copy user.js in all profilefolders to get around those random profile names =)

	For Each ProfileFolder In oFSO.GetFolder(FoxProfilePath).Subfolders
	
		
		oFSO.GetFile(FileToCopy).Copy ProfileFolder & "\" & FileToCopy, True

	Next
End If

' clean up
Set oFSO = Nothing
Set WshShell = Nothing
Set WshSysEnv = Nothing

I hope this will help =)

cheers

zlep