Is it possible to change the automatic configuration address of the script in the settings of the Internet Explorer 8 LAN using a script?

I use two different script automatic configuration addresses in the Internet Explorer 8 LAN settings. During my work, I need to switch between them very often. Every time I have to do it manually.

Is there a way to automate it with a script or something else so that I can switch between them whenever I want?

+4
source share
2 answers

( .bat) , " script" → .

script

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "http://www.xxxxx.com:1234/sampleScript" /f

:

enter image description here

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v AutoConfigURL /t REG_SZ /d "" /f
+7

PowerShell:

Set-ItemProperty -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name AutoConfigURL -Value 'http://www.yourdomain.com/config.pac'

Remove-ItemProperty -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Internet Settings' -Name AutoConfigURL
+1

Source: https://habr.com/ru/post/1527653/


All Articles