Herein lies our first problem: this doesn't work on a machine level. Whenever wininet is invoked by launching a browser or going into the Internet Settings control panel applet, some background process takes the settings from those registry values and bundles them up into the DefaultConnectionSettings object. It uses the DefaultConnectionSettings binary value under HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections. Those values are stored there, but that's not what wininet actually uses. So, everyone knows that wininet proxy settings are kept in the registry at HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings, under a couple of values like ProxyEnable, ProxyServer, and AutoConfigURL right? Well almost. I spent several days digging and this is what I was able to uncover. There's just nothing on how to do this anywhere. Like really bad, even by their inconsistent standards. It turns out that Microsoft's documentation of this is appalling. Sounds great, but once you've turned this setting on, how do you actually configure the proxy for everyone? A Long Journey What it doesn't mention is that when you set this option, any services that were using winhttp will also pick up these settings. ![]() This policy is intended to ensure that proxy settings apply uniformly to the same computer and do not vary from user to user. They must use the zones created for all users of the computer. If you enable this policy, users cannot set user-specific proxy settings. ![]() This setting is reasonably clear and if you enable it (or set the registry value to 0) then it willĪpplies proxy settings to all users of the same computer. There is another option, ProxySettingsPerUser, which is also known as "Make proxy settings per-machine (rather than per-user)" in Group Policy. The problem with loopback policy is that it doesn't affect local accounts and the problem with winhttp proxy settings is they don't affect anything that uses wininet, which is most user-facing applications. You may occasionally in your career have had a want or need to set Windows proxy settings for every account on a machine regardless of who is logged in. I have been unable to divine exactly what this means but it sounds like it might be important. This value holds, and I quote, "configuration used by network connections other than the default connection". ![]() A nice man at Microsoft advised me that in addition to setting DefaultConnectionSettings you should also set SavedLegacySettings to the same value under the same key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |