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
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.
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
| 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.
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 DWordDisable
# 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 DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/EnableShellShortcutIconRemotePath
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'EnableShellShortcutIconRemotePath' -ErrorAction SilentlyContinue