There's a dialog in the "Internet Options" control panel applet if you go to the Security Tab, highlight "Local Intranet" and press "Sites" that looks something like
[X] Automatically detect intranet network
[ ] Include all local (intranet) sites not listed in other areas
[ ] Include all sites that bypass the proxy server
[ ] Include all network paths (UNCs)
I'd like to script these settings using PowerShell (or a batch file for that matter). I can't seem to find any documentation on doing that though. I found where they are persisted to the registry, but just changing the registry settings doesn't seem to work so I'm assuming there's some additional work to be done and a more official API for this.
Thanks for any help!
The preferred way to do this is via GPO.
For Example:
Computer Configuration -> Administrative Templates -> Windows Components -> Internet Explorer -> Internet Control Panel - Security Page, right-click Intranet Sites:
Include all local (intranet) sites listed in other areas
and select Enable.