Windows – Why is Windows Search no longer working after changing User Principal Name

windowswindows-server-2012-r2

I'm on Windows 10 / Windows server 2012 R2.

I changed the user principal name for an account in active directory to a different domain. I was able to login into the account, everything seemed to be working until I tried using Windows Search.

The "Type here to search" on taskbar and File Explorer search no longer work. Clicking the search box doesn't display a flashing cursor showing your ready to type. Typing after clicking search box will not display the text I'm typing or search results.

I've tried running search index rebuild + troubleshooter without luck.

I reverted the UPN domain back to the original and search functionality is still broke.

If I login with a different username on the same PC the search works as expected.

Anyone shed some light on what's going on here?

UPDATE:
Clicking on the search box causes an event error.

Unable to start a DCOM Server:
Microsoft.Windows.Search_1.14.0.19041_neutral_neutral_cw5n1h2txyewy!CortanaUI
as Unavailable/Unavailable. The error: "2147958016" Happened while
starting this command:
"C:\Windows\SystemApps\Microsoft.Windows.Search_cw5n1h2txyewy\SearchApp.exe"
-ServerName:CortanaUI.AppX8z9r6jm96hw4bsbneegw0kyxx296wr9t.mca

UPDATE 2
I was able to restore search functionality by deleting the affected user profile and signing back into the domain. Still not sure what happened or why the profile became corrupted after changing the UPN.

To delete user profile go to:

System -> Advanced system settings -> User Profiles

Best Answer

I suffered from the exact same problem as described in the original post after Windows Update KB4557957 installed itself.

The fix was to Uninstall the update then reinstall the Windows Search component by running the following PowerShell command as "Admin".

Get-AppxPackage Microsoft.Windows.Search | foreach { Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml" }

Thanks to the previous contributors for guiding me out of this one.