Page 1 of 1 1
Topic Options
#169561 - 2006-10-18 03:31 PM Login Scripts : Proxy Exceptions for IE & Firefox
vt_techie2006 Offline
Lurker

Registered: 2006-09-20
Posts: 3
Hello All !

I've implemented a local Proxy which our users hit whilst using either Internet Explorer or Firefox on both Mac OSX & Windows (mainly XP) platforms :
the local domain controller batch file scripts control, or in my case do NOT control very well, the content permitted within the LAN, based on the registry writes performed. Here's the code that's executed on login :
Code:

$key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
WRITEVALUE($key,"ProxyEnable","1","REG_DWORD")
WRITEVALUE($key,"ProxyServer","192.168.0.164:8080","REG_SZ")
WRITEVALUE($key,"ProxyOverride", "server1.ourdomain.com;server2.ourdomain.com;192.168.0.0/24;192.168.10.0/24", "REG_SZ")

;Set Intranet as HomePage
$key = "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\"
WRITEVALUE($key, "Start Page", "http://server1.ourdomain.com", "REG_SZ")


In testing, we can't get to, for example, http://192.168.10.5. And when going into the proxy settings for IE, IE crashes completely which leads me to believe there's syntax problems. Lastly, you can see there is NO firefox registry work done here which should be.

Hoping someone has some good pointers as I need to deploy company wide.

Thanks for your help !

-- VT.
[edit]
Added CODE Tags for the script code.
[/edit]


Edited by kdyer (2006-10-18 06:56 PM)

Top
#169562 - 2006-10-18 03:35 PM Re: Login Scripts : Proxy Exceptions for IE & Firefox
Björn Offline
Korg Regular
*****

Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
Heyya. Been pondering about that since a earlier post regarding installing ff for several computers.. for IE you can use a GPO, and I know that on first startup of ff you can 'copy' settings and bookmarks, therefore you should be able to somehow ship out settings for ie and then run a script that makes ff swallow those changes / settings as well.

Oh, and welcome!

Have you verified that the inputed key-values are correct /written correctly?

Top
#169563 - 2006-10-18 03:57 PM Re: Login Scripts : Proxy Exceptions for IE & Firefox
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I use WPAD and GetRoutingScript.
Top
#169564 - 2006-10-18 07:04 PM Re: Login Scripts : Proxy Exceptions for IE & Firefox
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
In GPO, you can do this:
Quote:


User Configuration \ Windows Settings \ Internet Explorer Maintenance \ URLs \ Important URLs





HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#169565 - 2006-10-18 09:54 PM Re: Login Scripts : Proxy Exceptions for IE & Firefox
vt_techie2006 Offline
Lurker

Registered: 2006-09-20
Posts: 3
Yeah, well reason we're going outside the GPO is due to a hosed GPO, otherwise I would; which would also restrict the user from making changes to their settings.

Does anyone have the appropriate Firefox subkeys ?

Thanks,

-- B.

Top
#169566 - 2006-10-18 10:42 PM Re: Login Scripts : Proxy Exceptions for IE & Firefox
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Looks like Firefox does not use the registry for this but writes the stuff to a file in the users profile path.
If you write the line below to this file C:\Documents and Settings\[USERNAME]\Application Data\Mozilla\Firefox\Profiles\xd783jnw.default\prefs.js it has that site set to bypass the proxy. I'm not sure about the last bit of the path (xd783jnw.default) being the same on all computers because it looks kind of random.

Quote:


user_pref("network.proxy.no_proxies_on", "http://www.kixtart.org");





Edited by Mart (2006-10-18 10:43 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.065 seconds in which 0.012 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org