Do not search for files
Ne pas rechercher les fichiers
Explanation
If you enable this policy setting the Start menu search box will not search for files.
If you disable or do not configure this policy setting, the Start menu will search for files, unless the user chooses not to do so directly in Control Panel. If you enable this policy, a "See more results" / "Search Everywhere" link will not be shown when the user performs a search in the start menu search box.
Si vous activez ce paramètre de stratégie, la zone de recherche du menu Démarrer ne recherche pas les fichiers.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les fichiers seront pris en compte dans la zone de recherche du menu Démarrer, sauf indication contraire de l’utilisateur dans le Panneau de configuration. Si vous activez cette stratégie, aucun lien « Voir plus de résultats »/« Rechercher partout » n’est visible lorsque l’utilisateur effectue une recherche dans la zone de recherche du menu Démarrer.
Registry
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer- Value name
NoSearchFilesInStartMenu
| 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: StartMenu/NoSearchFilesInStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoSearchFilesInStartMenu' -Value 1 -Type DWordDisable
# Disable: StartMenu/NoSearchFilesInStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoSearchFilesInStartMenu' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": StartMenu/NoSearchFilesInStartMenu
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
Remove-ItemProperty -Path $k -Name 'NoSearchFilesInStartMenu' -ErrorAction SilentlyContinue