Turn on automatic detection of intranet
Activer la détection automatique du réseau intranet
Explanation
This policy setting enables intranet mapping rules to be applied automatically if the computer belongs to a domain.
If you enable this policy setting, automatic detection of the intranet is turned on, and intranet mapping rules are applied automatically if the computer belongs to a domain.
If you disable this policy setting, automatic detection of the intranet is turned off, and intranet mapping rules are applied however they are configured.
If this policy setting is not configured, the user can choose whether or not to automatically detect the intranet through the intranet settings dialog in Control Panel.
Ce paramètre de stratégie active les règles de mappage intranet à appliquer automatiquement si l’ordinateur est membre d’un domaine.
Si vous activez ce paramètre de stratégie, la détection automatique du réseau intranet est activée. En outre, les règles de mappage intranet sont appliquées automatiquement si l’ordinateur appartient à un domaine.
Si vous désactivez ce paramètre de stratégie, la détection automatique du réseau intranet est désactivée. En outre, les règles de mappage intranet sont appliquées quelle que soit leur configuration.
Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut choisir d’activer ou non la détection automatique du réseau intranet via la boîte de dialogue des paramètres intranet dans le Panneau de configuration.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapHKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap- Value name
AutoDetect
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: inetres/SecurityPage_AutoDetect
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AutoDetect' -Value 1 -Type DWordDisable
# Disable: inetres/SecurityPage_AutoDetect
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AutoDetect' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/SecurityPage_AutoDetect
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap'
Remove-ItemProperty -Path $k -Name 'AutoDetect' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"