Intranet Sites: Include all network paths (UNCs)
Sites intranet : inclure tous les chemins d’accès réseau UNC
Explanation
This policy setting controls whether URLs representing UNCs are mapped into the local Intranet security zone.
If you enable this policy setting, all network paths are mapped into the Intranet Zone.
If you disable this policy setting, network paths are not necessarily mapped into the Intranet Zone (other rules might map one there).
If you do not configure this policy setting, users choose whether network paths are mapped into the Intranet Zone.
Ce paramètre de stratégie détermine si les URL représentant des UNC sont associées à la zone de sécurité Intranet local.
Si vous activez ce paramètre de stratégie, tous les chemins d’accès réseau sont associés à la zone Intranet.
Si vous désactivez ce paramètre de stratégie, les chemins d’accès réseau ne sont pas nécessairement associés à la zone Intranet (d’autres règles peuvent en mapper un ici).
Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs indiquent si les chemins d’accès réseau sont associés à la zone Intranet.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapHKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap- Value name
UNCAsIntranet
| 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/IZ_UNCAsIntranet
$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 'UNCAsIntranet' -Value 1 -Type DWordDisable
# Disable: inetres/IZ_UNCAsIntranet
$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 'UNCAsIntranet' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/IZ_UNCAsIntranet
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap'
Remove-ItemProperty -Path $k -Name 'UNCAsIntranet' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"