Open in the explorer

Intranet Sites: Include all network paths (UNCs)

Sites intranet : inclure tous les chemins d’accès réseau UNC

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Control Panel › Security Page FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet SécuritéFR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Panneau de configuration Internet › Onglet Sécurité
Supported on
At least Internet Explorer 6.0 in Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1 FR: Au minimum Internet Explorer 6.0 dans Windows XP avec Service Pack 2 ou Windows Server 2003 avec Service Pack 1
ADMX file
inetres.admx
Internal name
inetres/IZ_UNCAsIntranet

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.

French text from Windows 11 26H2

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\ZoneMap
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap
Value name
UNCAsIntranet
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert 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 SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Availability