how to edit AutoConfigUrl registry for proxy pac using script

user3625334 picture user3625334 · May 11, 2014 · Viewed 17.9k times · Source

We are creating a SSL VPN setup and our SSL VPN Gatway does not push pac files to the end users machines. But it do supoort running scripts when user connects and disconnet the ssl vpn.

I have created two batch files placed in system one will get execute at the time of connecting to SSL VPN and other at the time of disconnect to the VPN

Connecting to VPN reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://www-abc.com:3132/accelerated_pac_base.pac " /f

Disconnecting to VPN reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "" /f

The same is getting updated in the registry but not in the internet explorer connection settings.

Above, you mentioned that we have to modify the value under [HKEY_USERS\, to rectify brower restart issue.

Is is possible to create a two files ( Loin/Logout ) which could be provided to around 100 users to place in their system in the given path. and that patch would be called from our SSL vpn access gateway and resolve browser restart issue

Thanks Manpreet Bhuee

Answer