Is there a way to automatically set the proxy server in code? I am aware
of the WebProxy class, but that only seems to work when you set the Proxy
property of a WebRequest object. I am interested in automatically setting
the proxy for the Lan Settings (Communications tab) in the Internet
Properties dialog box under tools->options in IE. I found the registry key
that I suppose I could use, but is that best practices? Perhaps using WMI
could it be done? I prefer it done in code as opposed to a script, but
either way I need to figure that out.
Thanks