My search bar isn't working in Window 11 taskbar?

Search bar details on Task Manager
My search bar:
My search bar isn't working, as I type in. There is no action, I thought my keyboard is hanged or there are too many processes running but nothing was the problem so far. I even indexed my files as suggested by the copilot but no use.
So, the only solution I got it by doing End Task to the search in task manager but
how many times I have to do it? Is there any permanent solution for this?
Answer
Try to re-register Cortana & Search using PowerShell because sometimes the Search UI (powered by Cortana and ShellExperienceHost) gets corrupted.
Press
Win + X
→ click Windows Terminal (Admin) or PowerShell (Admin).Paste and run (powershell):
Get-AppxPackage -AllUsers Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Then restart your PC.
If not works, try to re-index your data because even if you've indexed, a corrupted index can still cause issues.
Press
Win + I
→ go to Privacy & Security → Searching Windows.Scroll down and click Advanced indexing options.
In the new window, click Advanced → then click Rebuild.
Enjoyed this question?
Check out more content on our blog or follow us on social media.
Browse more questions