在“Internet选项”控制面板小程序中有一个对话框,如果您转到“安全”选项卡,突出显示“本地Intranet”并按“网站”
[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)
我想脚本这些设置使用PowerShell(或batch file)。 我似乎无法find任何文件,但这样做。 我发现他们坚持到registry,但只是改变registry设置似乎没有工作,所以我假设有一些额外的工作要做,并为此更正式的API。
谢谢你的帮助!
要做到这一点的首选方法是通过GPO。
例如:
计算机configuration – >pipe理模板 – > Windows组件 – > Internet Explorer – > Internet控制面板 – 安全页面,右键单击Intranet站点: Include all local (intranet) sites listed in other areas然后select启用。