Open in the explorer

Do not use the search-based method when resolving shell shortcuts

Ne pas utiliser la méthode basée sur la recherche pour déterminer les raccourcis du Bureau

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Start Menu and Taskbar FR: Configuration utilisateur › Stratégies › Modèles d'administration › Menu Démarrer et barre des tâches
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
StartMenu.admx
Internal name
StartMenu/NoResolveSearch

Explanation

This policy setting prevents the system from conducting a comprehensive search of the target drive to resolve a shortcut.

If you enable this policy setting, the system does not conduct the final drive search. It just displays a message explaining that the file is not found.

If you disable or do not configure this policy setting, by default, when the system cannot find the target file for a shortcut (.lnk), it searches all paths associated with the shortcut. If the target file is located on an NTFS partition, the system then uses the target's file ID to find a path. If the resulting path is not correct, it conducts a comprehensive search of the target drive in an attempt to find the file.

Note: This policy setting only applies to target files on NTFS partitions. FAT partitions do not have this ID tracking and search capability.

Also, see the "Do not track Shell shortcuts during roaming" and the "Do not use the tracking-based method when resolving shell shortcuts" policy settings.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche le système d’effectuer une recherche globale sur le lecteur cible pour déterminer un raccourci.

Si vous activez ce paramètre de stratégie, le système n’effectue pas de recherche finale sur le lecteur. Il affiche simplement un message qui explique que le fichier est introuvable.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, par défaut, lorsque le système ne trouve pas le fichier cible d’un raccourci (.lnk), il effectue une recherche dans tous les chemins d’accès associés au raccourci. Si le fichier cible est situé sur une partition NTFS, le système utilise l’ID de fichier cible pour trouver un chemin d’accès. Si le chemin résultant est incorrect, le système effectue une recherche complète sur le lecteur cible pour essayer de trouver le fichier.

Remarque : ce paramètre de stratégie s’applique uniquement aux fichiers cibles sur des partitions NTFS. Les partitions FAT ne disposent pas de cette fonctionnalité de suivi et de recherche par ID.

Consultez également les paramètres de stratégie « Ne pas rechercher les raccourcis de l’environnement lors de l’exploration » et « Ne pas utiliser la méthode basée sur le suivi pour déterminer les raccourcis de l’environnement ».

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoResolveSearch
StateValue written
Enablednot defined in the ADMX
Disablednot 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: StartMenu/NoResolveSearch
$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 'NoResolveSearch' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: StartMenu/NoResolveSearch
$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 'NoResolveSearch' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": StartMenu/NoResolveSearch
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoResolveSearch' -ErrorAction SilentlyContinue

Availability