Fully disable Search UI
Désactiver complètement l’interface utilisateur de recherche
Explanation
If you enable this policy, the Search UI will be disabled along with all its entry points, such as keyboard shortcuts, touchpad gestures, and type-to-search in the Start menu. The Start menu's search box and Search Taskbar button will also be hidden.
If you disable or don't configure this policy setting, the user will be able to open the Search UI and its different entry points will be shown.
Si vous activez ce paramètre de stratégie, l’interface utilisateur de recherche est désactivée avec tous ses points d’entrée, tels que les raccourcis clavier, les mouvements du pavé tactile et la recherche de type dans le menu Démarrer. La zone de recherche du menu Démarrer et le bouton de la barre des tâches de recherche seront également masqués.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, l’utilisateur peut ouvrir l’interface utilisateur de recherche et ses différents points d’entrée sont affichés.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search- Value name
DisableSearch
| 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: Search/DisableSearch
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSearch' -Value 1 -Type DWordDisable
# Disable: Search/DisableSearch
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableSearch' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Search/DisableSearch
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search'
Remove-ItemProperty -Path $k -Name 'DisableSearch' -ErrorAction SilentlyContinue