Hey, I'm afraid it didn't work! These two still appear in the log:

R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Int ernet Settings,ProxyServer = 127.0.0.1:8080
R1 - HKCU\Software\Microsoft\Windows\CurrentVersion\Int ernet Settings,ProxyOverride = local
When I "fix" these, the Lan Settings automatically change to "use proxy server." When I unselect the "proxy server" box, the two "R1" keys come back in the log. Thanks for creating the code though, it was worth a try!