Solved

Can I configure proxy information via Login Script

Posted on 2006-11-13
10
2,648 Views
Last Modified: 2007-12-19
I've just implemented an IPrism to my network and I have it configured in proxy mode.  Is there a way via login I can configure proxy information in IE?  I'm running SBS Small Business Server.  Thanks in advance.
0
Comment
Question by:GTKINC
  • 5
  • 3
  • 2
10 Comments
 
LVL 7

Accepted Solution

by:
CharliePete00 earned 250 total points
ID: 17932266
Yes you can configure proxy via a logon script but going the GPO route will be much easier.  The policies you want are located under:

User Configuration\Windows Settings\Internet Explorer Maintenance\Connection\Connection Settings

Good Luck and Enjoy
0
 

Author Comment

by:GTKINC
ID: 17932443
I'm not currently running any GP's on this domain.  I'm fighting implementing them so far.  I'm sure the day is coming though.
0
 
LVL 7

Expert Comment

by:CharliePete00
ID: 17932622
Try adding the the following vbs code to your logon scripts:

myProxyServer="myproxy"
myProxyPort=80
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_Proxy")
      result = Obj.SetProxySetting(myProxyServer,myProxyPort)
      WScript.Echo "SetProxySetting() returned = " & result
next

0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 7

Expert Comment

by:CharliePete00
ID: 17932631
But be sure to look into GPOs...When used properly they can be an Administrator's best friend.
0
 

Author Comment

by:GTKINC
ID: 17932641
Kewl.  I'll try that and repost.
0
 
LVL 6

Assisted Solution

by:manicsquirrel
manicsquirrel earned 250 total points
ID: 17934689
You can attach proxy information in your DHCP server, so that when a client requests a DHCP it also gets the proxy information as well.  Then, you need set 'Automatically detect settings' in your browser.  This will affect all devices requesting DHCP, not just ones joined to your domain.

http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol
http://www.isaserver.org/tutorials/Automating_the_Configuration_of_the_Firewall_Client_Part_1.html

Even though the later article is about ISA, the DHCP server configuration is irrespective of the firewall used.  The bottom half of the article is a step-by-step on adding a wpad entry to the DHCP server, albeit on a Windows 2000 Server.  However, the differences are too minor to matter.

IPrism supports WPAD and PAC files according to their administrators guide:

"Preparing for Direct Authentication
If you decide to use Direct Authentication, you must configure the web
browsers on your network workstations appropriately. You can find instructions
for doing this in Appendix B, “Configuring Browsers for Authentication”
on page 227. This can also be done automatically by using the WPAD
protocol (Internet Explorer’s automatic proxy settings) or a proxy pac file
(Proxy Automatic Configuration)."
0
 

Author Comment

by:GTKINC
ID: 17935722
This would work well as I have some users who are "guest" and are not joined to the domain but they all use DHCP.  I'll try the above and repost.
0
 
LVL 6

Expert Comment

by:manicsquirrel
ID: 17935959
You will need to point the wpad entry to your wpad or pac script.  Unfortunately, I'm not versed on creating the script myself.  I use ISA server and it creates the script for me.  One reference I did find is: http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html

A sample proxy.pac file that you might use is:

function FindProxyForURL(url, host) {
    if (dnsDomainIs(host, "cr.yp.to") ||
      dnsDomainIs(host, "news.bbc.co.uk") ||
      dnsDomainIs(host, "www.boetes.org") ||
        isInNet(host, "172.16.11.0", "255.255.255.0") ||
        isInNet(host, "192.168.0.0","255.255.0.0") ||
        shExpMatch(url, "https:*") )
        return "DIRECT";
    else
        return "PROXY 172.16.11.1:8118; DIRECT";
}

The first part if the conditional statement, tests the target domain.  If the browser is trying to reaxh one of these domains (like and internal website) then it returns "DIRECT".  In otherwords, bypass the web proxy and go directly to the website, otherwise it returns the proxy address and the web browser goes through the web proxy.

BTW:  You can also create a WPAD alias in your DNS server.  If your client browser can't retrieve the proxy information from the DHCP server, it will also check for a WPAD DNS entry.  I found a better tutorial on configuring the server at http://www.isaserver.org/tutorials/Configuring-DHCP-DNS-automatic-discovery.html.

Remember, though - since you are not using ISA you will have to do a little custom tweaking.  You will have to host your auto configuration script on the server in a folder that is accessible by everyone.  If you want to host it on port 8080 just make sure you create a website running on port 8080 on your server in IIS and also remember to include the port designation in your DHCP WPAD entry.

Best of luck.  With an idea of what you want to do, you may be able to get some support from an IPrism support forum or their support staff.
0
 

Author Comment

by:GTKINC
ID: 17937818
I appreciate all of the extra input but for now I believe simply inputting the Proxy into the DHCP information should be sufficient.  Remember I'm only testing the device in Proxy mode.  Once I'm comfortable and I place it in bridge mode, I won't have to worry about proxy information.  Still waiting to return back to the site to implement some of these options.  I'm keeping my fingers crossed for the DHCP solution.  
0
 

Author Comment

by:GTKINC
ID: 18108286
Points are for your efforts as I haven't had time to try some of these things.  I will though.  Thanks for your time.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction At 19:33 (UST) on Tuesday 21st September the long awaited email arrived with the subject title of “ANNOUNCING THE AVAILABILITY OF WINDOWS SBS 7 PREVIEW”.  It was time to drop whatever I was doing and dedicate as much bandwidth as possi…
The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question