Operating System - Microsoft
1748051 Members
4877 Online
108757 Solutions
New Discussion

Re: BATCH file for changing “automatic configuration script” on IE.

 
bullz
Super Advisor

BATCH file for changing “automatic configuration script” on IE.

Hello experts,

My requirement is changing "automatic configuration script" on IE via BATCH file. Almost I got the solution, but when I change the settings via BATCH file it's not reflecting for the IE page which I have opened and active already, the new settings are reflecting only for the new pages.

Someone please explain how to get this enabled for the opened page also.

Below is the code for changing "automatic configuration script" and removing it.

-------------------------------------------------------------
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://xyz/abc.pac" /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "" /f


also, explain how can I disable it, instead of making it clear.

Thanks in advance. Points will be shared without fail :).
3 REPLIES 3
Diego Castelli
Trusted Contributor

Re: BATCH file for changing “automatic configuration script” on IE.

This is a normal behaviour and it's by design.

There's nothing you can do to change IE settings at runtime for open pages:

IE reads the registry at startup of the program or for new instances.

I have some experience in managing IE settings via batch or VBSCRIPT.
The only thing you can do is to detect open pages and reload a new window with tat url. This can be done via vbscript.

HTH. Bye
Diego C.

MS MCSA Server 2003

HP Accredited Integration Specialist
bullz
Super Advisor

Re: BATCH file for changing “automatic configuration script” on IE.

Thank you so much for the reply. But as you said, there is no other way for the pages which are opened already. It will be very difficult to close all the open page and reopen it again.

R u sure that, we can't do anything for the open pages to take effect of new changes?

ARUNPRAKASH
Valued Contributor

Re: BATCH file for changing “automatic configuration script” on IE.

I think its not applicable for already opened file. It will get changed after Reloading.