Windows 7: how to let AutoConfigURL change be effective immediately?

Posted by Jeroen Pluimers on Super User See other posts from Super User or by Jeroen Pluimers
Published on 2010-06-16T22:04:46Z Indexed on 2010/06/16 22:13 UTC
Read the original article Hit count: 1260

I want to set both the script and the "Use automatic configuration script" checkbox in Windows 7 using a script that immediately affects anything using wininet.dll (Internet Explorer, Chrome, .NET apps, etc).

I've done a before/after registry diff, and tried doing this through the registry, but things like the reg files below require the apps to be restarted.

Chaning the settings by pressing the "LAN Settings" button through this Control panel shortcut has immediate affect:

%windir%\system32\control.exe Inetcpl.cpl,,4

How can I script this immediate effect?

These are the registry script files:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
“AutoConfigURL”=”http://www.company.com/proxy.pac”

(registry scripts borrowed from http://danny.quantumspark.net/wordpress/)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
“AutoConfigURL”=-

--jeroen (who is checking out the notify function at superuser.com)

© Super User or respective owner

Related posts about windows-7

Related posts about script