Windows 7: how to let AutoConfigURL change be effective immediately?
- by Jeroen Pluimers
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)