I wanted to switch the Internet Proxy in windows automatically when a selected network interfaces went Up or Down. Currently this is a manual action. This program I developed in Visual Studio 2015 C# is doing this automatically. Follow this link to see the Page with C# code