+ Post New Thread
Results 1 to 5 of 5
Windows Server 2008 Thread, GPO Proxy server settings (to not activate away from school0 in Technical; Hi, we've been using a GPO to set the proxy settings necessary in school - this works fine What i'd ...
  1. #1

    Join Date
    Feb 2009
    Location
    Suffolk, UK
    Posts
    121
    Thank Post
    22
    Thanked 1 Time in 1 Post
    Rep Power
    0

    GPO Proxy server settings (to not activate away from school0

    Hi, we've been using a GPO to set the proxy settings necessary in school - this works fine

    What i'd like though is for staff laptops to not use the proxy when away from the school, ie not logged into the domain

    Our current solution is to use firefox out of school and explorer in - with some daft thingy (can't remember what but very usefull!) synching the bookmarks and faves from one to the other
    We'd like to move away from this and use explorer wherever, but without the need for staff to change any settings on their laptops (however easy!)

    Any advice greatfully received!!

    Thanks

  2. #2

    SYSMAN_MK's Avatar
    Join Date
    Sep 2005
    Posts
    4,005
    Thank Post
    489
    Thanked 1,343 Times in 729 Posts
    Rep Power
    429
    Here is a vbscript that that I use on staff laptops to change proxy settings. I just drop it in the startup folder and put a link to it on the desktop.

    Code:
    intAnswer = _
        Msgbox("CHANGE PROXY SETTINGS" & chr(13) & "ARE YOU AT HOME?", _
            vbYesNo, "WHERE ARE YOU?")
    
    If intAnswer = vbYes Then
    set WSHShell = WScript.CreateObject("WScript.Shell")
    
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", ""
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride", ""
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Start Page", "http://www.google.co.uk"	
        Msgbox "THE PROXY SERVER HAS BEEN DISABLED"
    Else
    set WSHShell = WScript.CreateObject("WScript.Shell")
    
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", "%YOURPROXYSERVER%:%PORT%"
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD"
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride", "<local>"	
    WSHShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\Start Page", "http://www.google.co.uk"	
        
    	Msgbox "THE PROXY SERVER HAS BEEN ENABLED"
    End If

  3. #3
    jsnetman's Avatar
    Join Date
    Oct 2007
    Posts
    887
    Thank Post
    23
    Thanked 134 Times in 126 Posts
    Rep Power
    40
    If you set up auto proxy either via dns or DHCP you don't get this problem as it's the same setting as is used on all home broadband.

    Chapter 26 - Using Automatic Configuration, Automatic Proxy, and Automatic Detection

  4. #4


    tom_newton's Avatar
    Join Date
    Sep 2006
    Location
    Leeds
    Posts
    4,475
    Thank Post
    866
    Thanked 850 Times in 672 Posts
    Rep Power
    196
    I *think* you can get away with pushing a proxy.pac that is only accessable inside the school... otherwise the auto-config route definitely works.

  5. #5
    chrisbrown's Avatar
    Join Date
    Aug 2010
    Location
    Melbourne, Australia
    Posts
    103
    Thank Post
    2
    Thanked 16 Times in 14 Posts
    Rep Power
    17
    Assuming you host your website internally, or at least host some sort of http:// site that is accessible inside and out, just put your proxy.pac on there. We host our website in our DMZ, and have the network set up so you don't need to be using the proxy to get to it. That way no matter whether the notebook is on campus or at home, it can access the proxy.pac file and know exactly what to do.

    For example:

    Code:
    function FindProxyForURL(url, host)
    {
    
               if (isPlainHostName(host)
                || isInNet(host, "123.123.123.0", "255.255.255.0")
                || isInNet(host, "192.168.211.0", "255.255.255.0")
                || isInNet(host, "172.17.0.0", "255.255.0.0")
                || isInNet(host, "172.18.0.0", "255.255.0.0")
                || dnsDomainIs(host, ".yourschool.edu"))
                    return "DIRECT";
    
               if (isInNet(myIpAddress(), "172.16.0.0", "255.255.0.0") 
    	    || isInNet(myIpAddress(), "172.17.0.0", "255.255.0.0") 
    	    || isInNet(myIpAddress(), "172.18.0.0", "255.255.0.0") 
    	    || isInNet(myIpAddress(), "172.20.0.0", "255.255.252.0") 
    	    || isInNet(myIpAddress(), "172.24.0.0", "255.255.252.0") 
    	    || isInNet(myIpAddress(), "172.31.0.0", "255.255.0.0")
    	    || isInNet(myIpAddress(), "10.10.0.0", "255.255.248.0") 
                || isInNet(myIpAddress(), "10.10.8.0", "255.255.252.0")
    	    || isInNet(myIpAddress(), "10.20.0.0", "255.255.252.0") 
    	    || isInNet(myIpAddress(), "10.20.4.0", "255.255.252.0")
    	    || isInNet(myIpAddress(), "10.22.0.0", "255.255.255.0")
                || isInNet(myIpAddress(), "10.21.0.0", "255.255.255.0")
    	    || isInNet(myIpAddress(), "10.24.0.0", "255.255.224.0")  
    	    || isInNet(myIpAddress(), "10.24.60.0", "255.255.255.0") 
    	    || isInNet(myIpAddress(), "10.24.61.0", "255.255.255.0")
    	    || isInNet(myIpAddress(), "10.24.62.0", "255.255.255.0")
    	    || isInNet(myIpAddress(), "10.25.0.0", "255.255.252.0")
    	    || isInNet(myIpAddress(), "10.50.0.0", "255.255.224.0") 
    	    || isInNet(myIpAddress(), "10.51.0.0", "255.255.224.0") 
    	    || isInNet(myIpAddress(), "10.52.0.0", "255.255.224.0") 
    	    || isInNet(myIpAddress(), "192.168.212.0", "255.255.255.0")
    	    || isInNet(myIpAddress(), "192.168.192.0", "255.255.255.0")) 
                    return "PROXY 123.123.123.123:80";        
    
            
    	return "DIRECT";
    
    }

SHARE:
+ Post New Thread

Similar Threads

  1. Terminal server gpo settings (svr08)
    By lafleur1977 in forum Thin Client and Virtual Machines
    Replies: 0
    Last Post: 21st April 2010, 12:37 PM
  2. Replies: 10
    Last Post: 12th October 2009, 11:16 AM
  3. Proxy server settings for N96
    By SimpleSi in forum Netbooks, PDA and Phones
    Replies: 1
    Last Post: 5th December 2008, 11:40 AM
  4. HOw do tou enforce proxy settings in a gpo
    By markman in forum Windows
    Replies: 14
    Last Post: 15th October 2008, 12:40 PM
  5. Problem with Proxy settings in GPO
    By tosca925 in forum Windows
    Replies: 9
    Last Post: 18th January 2006, 12:54 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •