How to setup automatic proxy configuration via pac file windows server core r2

PROXYwindows-server-2008-r2windows-server-core

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.

Best Answer

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]