Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


yet another proxy_config.vbs

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,40259
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> yet another proxy_config.vbs
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 yet another proxy_config.vbs - 11/30/2006 6:26:00 AM   
  bigwill

 

Posts: 12
Score: 0
Joined: 8/22/2006
Status: offline
Hello All,

As you may or may not be aware, you must configure the proxy settings for each user on a windows domain. The following script will configure the gateway as the proxy for each user that runs it. Since our organization uses linux based VPN routers with Squid web proxy to do content filtering, and access control, the gateway is always the proxy. We use the 172.x.x.x private range, so Im not 100% certain of the performance of this under other private net ranges.

On a side note, someone will probably mention that there's a way to retrieve the gateway with WMI, and they would be correct. The problem I've encountered with using WMI is that, sometimes, I get back information about the wrong network card on computers with more than one network card (especially our wireless tablets running windows XP tablet edition). The scripts that I have which use WMI, I still use a function similar to GrabGateway [GrabIP in my other scripts] as a fall-back if I get a 169.x.x.x IP.

If you are confused about what this script is doing, simply set DebugMode = true at the top of the script, and you'll get plenty of information out of it.


      

This script was written entirely in Notepad++, with tabstops set to 2.
 
 
Post #: 1
 
 RE: yet another proxy_config.vbs - 12/2/2006 11:36:52 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
We just set the web proxy (in IE) using a GPO and then disable the user's ability to change it via the same GPO.

This works great until they use another browser though.

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to bigwill)
 
 
Post #: 2
 
 RE: yet another proxy_config.vbs - 2/28/2007 9:34:21 AM   
  bigwill

 

Posts: 12
Score: 0
Joined: 8/22/2006
Status: offline
I have over 40 offices. That means 40 different subnets. And to top that off, many of my users go from one office to another. A nice script that is applied at the top level via GPO was the simplest way to manage affairs. :)


-Bigwill

< Message edited by bigwill -- 2/28/2007 9:37:18 AM >

(in reply to kirrilian)
 
 
Revisions: 1 | Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> yet another proxy_config.vbs Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts