我正在尝试设置IE中的所有连接设置。
我已经找到了如何在path中修改它们中的大多数:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet设置
但是我找不到设置或取消设置“自动检测设置”的参数。
有什么帮助吗?
发布于 2014-04-15 19:26:37
对于希望取消勾选“自动检测设置”框而不覆盖注册表项中包含的其他设置的任何人,您可以在登录时使用vbscript。
On Error Resume Next
Set oReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
sKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections"
sValueName = "DefaultConnectionSettings"
' Get registry value where each byte is a different setting.
oReg.GetBinaryValue &H80000001, sKeyPath, sValueName, bValue
' Check byte to see if detect is currently on.
If (bValue(8) And 8) = 8 Then
' Turn off detect and write back settings value.
bValue(8) = bValue(8) And Not 8
oReg.SetBinaryValue &H80000001, sKeyPath, sValueName, bValue
End If
Set oReg = Nothing
发布于 2012-09-03 15:19:38
如果只是禁用每30分钟执行一次的组策略,则可以取消选中该框,然后将权限更改为只读。
发布于 2015-11-13 21:08:37
我已经使用了一个组合答案,并创建了一个powershell脚本,它可以为您完成此任务
$name = $PSScriptRoot + "\" + $MyInvocation.MyCommand.Name
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$name`"" -Verb RunAs; exit }
$registryPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
$Name = "AutoDetect"
$value = "0"
New-ItemProperty -Path $registryPath -Name $name -Value $value ` -PropertyType DWORD -Force | Out-Null
Read-Host -Prompt "press Enter to Continue"
脚本将以管理员身份运行,并将值更改为0(禁用自动检测)。
https://stackoverflow.com/questions/1674119
复制相似问题