Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm looking for the syntax to setup windows server core R2 to take its proxy configuration from a script(.pac file)

for example in my LAN settings dialog:

Automatic configuration
use automatic configuration script(checked) address http://foo.bar/proxy.pac (text box)

any thoughts on how I can set this netsh doesn't appear to support this unless I'm missing something.

share|improve this question
    
I noodled around with this for a bit, but I can't see a way, either. I tried to set it in IE (on a non-SC box) and then ran "netsh winhttp import proxy ie" but it had no effect. –  fission Feb 27 '10 at 10:04
add comment

2 Answers

You can simply export registry based on this article:

http://support.microsoft.com/kb/819961/EN-US

Here is simple script

REGEDIT /e c:\proxysetup.reg "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings"

After that you may remove rest of file content after section

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

share|improve this answer
add comment

netsh winhttp

I'd use netsh winhttp import proxy - this should import from IE and take a PAC hopefully.

http://technet.microsoft.com/en-us/library/cc731131(WS.10).aspx

share|improve this answer
    
This only works to import settings from IE to the system services proxy used by services like windows update. It will not work for setting the proxy used by Internet Explorer. –  Greg Bray Sep 27 '12 at 18:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.