I cannot figure out how to turn the Web Proxy off when I close the console. My current code:
AppDomain.CurrentDomain.ProcessExit += delegate(object sender, EventArgs e)
{
RegistryKey inetproxyRegKey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true);
inetproxyRegKey.SetValue("ProxyEnable", 0);
}