Open in the explorer

Allow the use of remote paths in file shortcut icons

Autoriser l’utilisation de chemins d’accès distants dans les icônes de raccourcis de fichiers

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › File Explorer FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Explorateur de fichiers
Supported on
At least Windows Server 2012, Windows 8 or Windows RT FR: Au minimum Windows Server 2012, Windows 8 ou Windows RT
ADMX file
WindowsExplorer.admx
Internal name
WindowsExplorer/EnableShellShortcutIconRemotePath

Explanation

This policy setting determines whether remote paths can be used for file shortcut (.lnk file) icons.

If you enable this policy setting, file shortcut icons are allowed to be obtained from remote paths.

If you disable or do not configure this policy setting, file shortcut icons that use remote paths are prevented from being displayed.

Note: Allowing the use of remote paths in file shortcut icons can expose users’ computers to security risks.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si des chemins d’accès distants peuvent être utilisés pour les icônes de raccourcis de fichiers (fichier .lnk).

Si vous activez ce paramètre de stratégie, des chemins d’accès distants peuvent être utilisés pour obtenir les icônes de raccourcis de fichiers.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les icônes de raccourcis de fichiers utilisant des chemins d’accès distants ne peuvent pas être affichés.

Remarque : autoriser l’utilisation de chemins d’accès distants dans les icônes de raccourcis de fichiers peut exposer les ordinateurs des utilisateurs à des risques de sécurité.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Explorer
Value name
EnableShellShortcutIconRemotePath
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.

Enable

# Enable: WindowsExplorer/EnableShellShortcutIconRemotePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableShellShortcutIconRemotePath' -Value 1 -Type DWord

Disable

# Disable: WindowsExplorer/EnableShellShortcutIconRemotePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableShellShortcutIconRemotePath' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": WindowsExplorer/EnableShellShortcutIconRemotePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'EnableShellShortcutIconRemotePath' -ErrorAction SilentlyContinue

Availability