- Official Post
At the moment there is a bug running through Windows 11 where the search doesn't work anymore.
Here is a small script that you can start as admin to reset your search and put it into a working state again.
The comments are in french!
PowerShell
# Redémarre les processus liés à la recherche Windows
Write-Host "Redémarrage du processus SearchHost.exe..."
Get-Process -Name "SearchHost" -ErrorAction SilentlyContinue | Stop-Process -Force
# Redémarre l'explorateur Windows
Write-Host "Redémarrage de l'Explorateur Windows..."
Stop-Process -Name explorer -Force
Start-Process explorer
# Réenregistre les composants liés à la recherche
Write-Host "Réenregistrement du composant de recherche..."
Get-AppxPackage -AllUsers MicrosoftWindows.Client.CBS | foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
# Vérifie l'état du service Windows Search
Write-Host "Vérification de l'état du service Windows Search..."
$searchService = Get-Service -Name WSearch -ErrorAction SilentlyContinue
if ($searchService.Status -ne 'Running') {
Write-Host " Démarrage du service Windows Search..."
Start-Service -Name WSearch
} else {
Write-Host " Le service Windows Search est déjà en cours d'exécution."
}
Write-Host " Script terminé. Essayez de rouvrir la recherche dans la barre des tâches."
Display More