Hi Albert Rees,
Hope your day is fine. Sorry to hear about your problem. Since your problem is a Profile base issue, try to do these recommended steps below.
First, as a more recommended and safest option, create a new user profile first and migrate your settings first. To do this:
Go to Settings > Accounts > Family & otherusers > Add account > "I dont have this person's sign-in information" > Add a local account.
Sign-in to the new account (Windows will create the new profile folder)
From an Admin account copy your data "EXCEPT"
Ntuser.dat
Ntuser.dat.log
Ntuser.ini
Copy profile folders except these NTUSER files.
Example, run in an elevated Admin PowerShell or Command Prompt. > replace <OldUser> and <NewUser>.
robocopy "C:\Users<OldUser>\Desktop" "C:\Users<NewUser>\Desktop" /E /COPY:DAT
robocopy "C:\Users<OldUser>\Documents" "C:\Users<NewUser>\Documents" /E /COPY:DAT
robocopy "C:\Users<OldUser>\Pictures" "C:\Users<NewUser>\Pictures" /E /COPY:DAT
robocopy "C:\Users<OldUser>\AppData\Roaming" "C:\Users<NewUser>\AppData\Roaming" /E /COPY:DAT
DON'T COPY: C:\Users<OldUser>\ntuser.dat. Some Apps Store per-user state in AppData\Local ; copy only what you need from Local (large caches and search packages are better regenerated). Then Reset Permissions on the new profile folder:
icacls "C:\Users<NewUser>" /reset /T
Then sign in as the new user and test the search.
Next Option is to Edit or Clean the broken profile's registry keys (Advance option - If you want to retain your existing user and just want to fix it). Use or Sign-in to a different admin acount to do these following steps (dont use your broken account).
First, back-up your NTUSER.DAT file. Copy it from C:\Users<OldUser>\NTUSER.DAT to a different folder or save path. Export Profile list (just to be sure). On CMD:
reg export "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" C:\Temp\ProfileList.reg
Create a System restore point: Control Panel > Recovery > Open System restore > Create.
Second, Log-in to a different Admin Account (dont use the broken account)
Third, Load the broken user hive, replace <OldUser> and choose a name BadHive.
Sample: reg load HKU\BadHive "C:\Users<OldUser>\NTUSER.DAT"
Fourth, Delete the per-user Search key (resets per-user Search/Cortana state).
reg delete "HKU\BadHive\Software\Microsoft\Windows\CurrentVersion\Search" /f
You can try also to use regedit: expand
HKEY_USERS\BadHive\Software\Microsoft\Windows\CurrentVersion\Search and delete the Search key.
Fifth, delete the search package folder on the broken User account to force package data to regenerate.
rd /s /q "C:\Users<OldUser>\AppData\Local\Packages\Microsoft.Windows.Search_cw5n1h2txyewy"
If folder name is different, try to check *C:\Users<OldUser>\AppData\Local\Packages* for "Search" packages. It is recommended removing that folder when regenerating the per-user Search package.
Sixth, unload the hive and reboot.
reg unload HKU\BadHive
shutdown /r /t 5
Seventh, log-in again on the fixed User account and test the Search. Incase it still fails, try the ResetWindowsSearchBox.ps1 and re-register the Search system app. On elevated PowerShell:
# re-register the Windows Search system app (use non-elevated for user registration if possible)
Get-AppxPackage -AllUsers Microsoft.Windows.Search | ForEach-Object {
Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"
(Note the guidance about running registration from the proper account context-see Microsoft guidance).
Third Option, is to remove the entire old profile and let windows recreates a fresh profile (NOTE: back-up first the user's data).
First step, Export Profile list (back-up process). On CMD:
reg export "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" C:\Temp\ProfileList.reg
Second, in Regedit (Registry Editor), go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Find the SID whose ProfileImagePath = C:\Users<OldUser>, delete SID key.
Third, delete or just rename the folder C:\Users<OldUser> (after you back-up the needed data).
Finally, sign-in in that fixed user account. Windows will create a fresh profile folder.
I hope some of the steps above solved your issue.
Sincerely,
Jhun