Without using third party software, is there a way to have Windows toggle your proxy settings on/off based on the wired/wireless connection you make?

I'm aware that I could create a registry script and run that each time to toggle the proxy settings but I'm more interested in something that would automatically trigger the proxy settings to change based on when a wired/wireless network connection was established.