Windows 11 search b...
 
Notifications
Clear all

Windows 11 search bug

1 Posts
1 Users
0 Reactions
18 Views
Frank Schroeder
(@iseetwizard)
Estimable Member Admin
Joined: 5 years ago
Posts: 50
Topic starter  

At the moment there is a bug running trough 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!

 

# 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."

 


   
Quote