Turn off display of recent search entries in the File Explorer search box
Désactiver l’affichage des entrées de recherche récentes de la zone de recherche de l’Explorateur de fichiers
Explanation
Disables suggesting recent queries for the Search Box and prevents entries into the Search Box from being stored in the registry for future references.
File Explorer shows suggestion pop-ups as users type into the Search Box. These suggestions are based on their past entries into the Search Box.
Note: If you enable this policy, File Explorer will not show suggestion pop-ups as users type into the Search Box, and it will not store Search Box entries into the registry for future references. If the user types a property, values that match this property will be shown but no data will be saved in the registry or re-shown on subsequent uses of the search box.
Désactive la suggestion des requêtes récentes dans la zone de recherche et empêche que les entrées de la zone de recherche soient enregistrées dans le Registre pour référence ultérieure.
L’Explorateur de fichiers affiche des suggestions en fonction du texte que les utilisateurs tapent dans la zone de recherche. Ces suggestions sont liées aux précédentes entrées spécifiées dans la zone de recherche.
Remarque : si vous activez cette stratégie, l’Explorateur de fichiers n’affiche pas de suggestions lorsque les utilisateurs tapent du texte dans la zone de recherche, et n’enregistre pas les entrées de la zone de recherche dans le Registre pour référence ultérieure. Si l’utilisateur tape une propriété, les valeurs correspondant à cette propriété sont affichées, mais aucune donnée n’est enregistrée dans le Registre ou affichée en suggestion lors des recherches ultérieures à partir de la zone de recherche.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer- Value name
DisableSearchBoxSuggestions
| 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/DisableSearchBoxSuggestions
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSearchBoxSuggestions' -Value 1 -Type DWordDisable
# Disable: WindowsExplorer/DisableSearchBoxSuggestions
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSearchBoxSuggestions' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": WindowsExplorer/DisableSearchBoxSuggestions
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Explorer'
Remove-ItemProperty -Path $k -Name 'DisableSearchBoxSuggestions' -ErrorAction SilentlyContinue