Do not track Shell shortcuts during roaming
Ne pas rechercher les raccourcis de l’environnement lors de l’exploration
Explanation
This policy setting determines whether Windows traces shortcuts back to their sources when it cannot find the target on the user's system.
Shortcut files typically include an absolute path to the original target file as well as the relative path to the current target file. When the system cannot find the file in the current target path, then, by default, it searches for the target in the original path. If the shortcut has been copied to a different computer, the original path might lead to a network computer, including external resources, such as an Internet server.
If you enable this policy setting, Windows only searches the current target path. It does not search for the original path even when it cannot find the target file in the current target path.
If you disable or do not configure this policy setting, Windows searches for the original path when it cannot find the target file in the current target path.
Ce paramètre de stratégie détermine si Windows doit assurer le suivi des raccourcis jusqu’à leur source lorsqu’il ne peut pas trouver la cible sur le système de l’ordinateur.
Les fichiers de raccourcis contiennent généralement un chemin d’accès absolu vers le fichier cible initial, ainsi que le chemin d’accès relatif vers le fichier cible actif. Lorsque le système ne peut pas trouver le fichier dans le chemin cible en cours, par défaut, il recherche la cible dans le chemin d’accès initial. Si le raccourci a été copié vers un autre ordinateur, le chemin initial peut mener à un ordinateur réseau, y compris des ressources externes, telles qu’un serveur Internet.
Si vous activez ce paramètre de stratégie, Windows ne recherche que dans le chemin cible en cours. Il n’effectue pas de recherche du chemin initial même lorsqu’il ne peut pas trouver le fichier cible dans le chemin cible en cours.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Windows recherche le chemin initial lorsqu’il ne trouve pas le fichier cible dans le chemin cible en cours.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
LinkResolveIgnoreLinkInfo
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.
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/LinkResolveIgnoreLinkInfo
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'LinkResolveIgnoreLinkInfo' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: WindowsExplorer/LinkResolveIgnoreLinkInfo
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'LinkResolveIgnoreLinkInfo' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": WindowsExplorer/LinkResolveIgnoreLinkInfo
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'LinkResolveIgnoreLinkInfo' -ErrorAction SilentlyContinue