• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2675
  • Last Modified:

Can I configure proxy information via Login Script

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
GTKINC
Asked:
GTKINC
  • 5
  • 3
  • 2
2 Solutions
 
CharliePete00Commented:
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
 
GTKINCAuthor Commented:
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
 
CharliePete00Commented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
CharliePete00Commented:
But be sure to look into GPOs...When used properly they can be an Administrator's best friend.
0
 
GTKINCAuthor Commented:
Kewl.  I'll try that and repost.
0
 
manicsquirrelCommented:
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
 
GTKINCAuthor Commented:
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
 
manicsquirrelCommented:
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
 
GTKINCAuthor Commented:
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
 
GTKINCAuthor Commented:
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

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now