一直试图狩猎这个好几周没有运气。
我需要一种方法来禁用设置..
在IE中。
工具>连接>局域网设置我需要取消选中“自动检测设置”
有没有人知道我可以通过组策略来做到这一点。
所有用户在IE 9或IE 10上
谢谢
格雷格
没有特定的GPO设置。
您可以将IE设置从本地机器导入到GPP中,并按照这种方式应用它们。 例如,您可以加载一个香草IE,取消选中该框,然后将这些设置导入到GPO中进行部署。 但通常这会导致更多的问题,远远超过它的价值。
看起来最好的select是通过GPP来操纵registry。
从链接:
Here's the key you are after: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet设置\连接\ DefaultConnectionSettings
Look for byte number 8 (starts at 0 so count 9). Here's the values it can have: Byte number 8 can take different values as per your settings. The value is : 09 when only 'Automatically detect settings' is enabled 03 when only 'Use a proxy server for your LAN' is enabled 0B when both are enabled 05 when only 'Use automatic configuration script' is enabled 0D when 'Automatically detect settings' and 'Use automatic configuration script' are enabled 07 when 'Use a proxy server for your LAN' and 'Use automatic configuration script' are enabled 0F when all the three are enabled. 01 when none of them are enabled. The next three bytes are zeros (Bytes 9 to B) You probably want to set this from 09 (enabled) to 01 (disabled). More info on here: http://www.visualbasicscript.com/tm.aspx?high=&m=30518&mpage=1#46540 You will also find a post slightly further down (number 15) containing a VB script that the author says will change only that byte. I have not tested it.
完整的信息可以在这里find: http : //social.technet.microsoft.com/Forums/windowsserver/en-US/cb6abb30-4360-4d3d-93fc-61823b2a5c20/turn-off-auto-detect-settings-in-ie -使用的GPO?论坛= winserverGP
另一个答案扩展,这里是一个PowerShell脚本翻转一点。
$flip = (Get-ItemProperty -Path 'registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' -Name DefaultConnectionSettings).DefaultConnectionSettings $flip[8] $flip[8] = !$flip[8] $flip[8] Set-ItemProperty -Path 'registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' -Name DefaultConnectionSettings -Value $flip
在典型的工作站上,我手动取消选中“自动检测设置”选项,然后将此registry设置复制到用户configuration>首选项> Windows设置>registry中:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ Connections \ DefaultConnectionSettings
Hive: HKEY_CURRENT_USER Key path: Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections Value name: DefaultConnectionSettings Value type: REG_BINARY Value data: 4600000015000000010000000000000000000000000000000100000020000000687474703A2F2F777061642E73746166662E6C6F63616C2F777061642E64617452E5D052E2BACE010000000000000000000000000100000002000000CDBDC36F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
不知道你关心上面的价值数据 – 我只是导入了整个事情…
由@ Knuckle-Dragger提供的脚本的一些修改版本,可以放在.cmd / .bat文件中,只需点击并运行脚本即可。
@echo off powershell -Command "& {"^ "$settings = (Get-ItemProperty "^ "-Path 'registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' "^ "-Name DefaultConnectionSettings).DefaultConnectionSettings;"^ "$settings[8] = $settings[8] -band (-bnot 8);"^ "Set-ItemProperty -Path 'registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections' -Name DefaultConnectionSettings -Value $settings"^ "}"
似乎有无证的设置,在Windows 2012 / 2012R2上正常工作,所以它有可能在Windows 7和Windows 7上运行。
registry项:HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings \ DWORD AutoDetect = 0或1
将其保存为vbs并应用于GPOlogin脚本,或者如果不帮助,请参阅https://blogs.msdn.microsoft.com/askie/2014/12/17/how-to-use-gpp-registry-to-取消-自动-检测-设置/
Option Explicit On Error Resume Next Dim WshShell Set WshShell=CreateObject("WScript.Shell") WshShell.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoDetect","0","REG_DWORD"