I have two .bat files to enable and disable proxy through registry:
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
However the only way to make them work is to open up Internet Options and open up the LAN Settings tab.
The changes are made, but it's as if they aren't being applied/saved.
Is there a way I can do this through a command etc.
To apply change in registry for enable and disable the proxy in Internet Explorer from command line you have Two way.
First way:
1- Run command line As Administrator
2- Terminate Internet Explorer before change your registry.
3- change the proxy enable or disable from registry as you did in your question.
second way :
1- Run command line as administrator
2- Change proxy enable/disable as you did in your question
3- Terminate the windows Explorer and then Reopen after you change registry Already