Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.69k stars 1.08k forks source link

Start menu and taskbar search broken in 18362.329 #262

Closed AnubisMann closed 4 years ago

AnubisMann commented 4 years ago

After applying the script with the latest update of Windows 10, 18362.329, the windows search found in the taskbar stops working. Searching with the magnifying glass found in the taskbar does not work.

KedarWolf commented 4 years ago

Might need to do in the 'Default.preset' EnableWebSearch EnableCortana

AnubisMann commented 4 years ago

Might need to do in the 'Default.preset' EnableWebSearch EnableCortana

Before the 329 update everything was working fine, it is a mistake now and always uses Cortana deactivated without problems.

KedarWolf commented 4 years ago

Try just enabling WebSearch but with .329 they changed how Contana works and you may need to do both.

AnubisMann commented 4 years ago

WebSearch

Enable WebSearch with Cortana disabled........ works fine. Thanks !

LiBOSS-CZ commented 4 years ago

Works for me as well.

Disassembler0 commented 4 years ago

This seems like a bug in Windows. There's a thread on reddit about a related problem with high SearchUI.exe CPU usage on 18362.329 with attached fix. The fix replaces Cortana cache with a clean one and works also as a fix for the problem described in this issue.

At first glance it's rather elaborate, but I'll check if I can incorporate it somehow or find another (more primitive but simpler) way of fixing it.

Disassembler0 commented 4 years ago

Also here is a tweet from Microsoft acknowledging the problem (though it's still not listed in known issues of KB4512941), and here is a nice writeup about what the bug does and how it can be worked around.

Disassembler0 commented 4 years ago

One of the "primitive but simple" approaches could be simply copying the old version of cache from WinSxS like this

takeown /F C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\cache /A /R
icacls C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\cache /grant Administrators:F /T
robocopy /MIR C:\Windows\WinSxS\amd64_microsoft-windows-c..che.desktop.cortana_31bf3856ad364e35_10.0.18362.1_none_943212ff8fbbe626 C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\cache\Desktop
robocopy /MIR C:\Windows\WinSxS\amd64_microsoft-windows-c..cal.desktop.cortana_31bf3856ad364e35_10.0.18362.1_none_c340725fc95811bb C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\cache\Local\Desktop

However this leaves the whole cache directory with wrong permissions, so it's definitely not ideal and I still recommend using the fix above instead.

As this is definitely up to Microsoft to fix, I'll just comment this tweak in the default preset and add a note and a warning for 18362.329 users. This won't help those which have already applied it, but I don't think I can do more at this point. Hopefully it'll be fixed one day. I somehow doubt they'll manage it until the next patch tuesday, which is next week.

Disassembler0 commented 4 years ago

KB4512941 now lists the issue in known issues.

Symptom Workaround
Microsoft is getting reports that a small number of users may not receive results when using Windows Desktop Search and may see high CPU usage from SearchUI.exe. This issue only occurs on devices that have disabled searching the web using Windows Desktop Search. We are working on a resolution and estimate a solution will be available in mid-September.
Disassembler0 commented 4 years ago

Fixed in KB4515384. I'm impressed.

iamteerawut commented 4 years ago

image

as I used fix Cortana cache before the update KB4515384 was applied search working Now after the update, KB4515384 has applied search have the problem again what can I do now?

Disassembler0 commented 4 years ago

This is probably the most generic advice ever, but try running

dism /Online /Cleanup-image /Restorehealth
sfc /scannow

as described here. The point is to try and force Windows to restore the Cortana cache using the correct files from WinSxS.

AnubisMann commented 4 years ago

image

as I used fix Cortana cache before the update KB4515384 was applied search working Now after the update, KB4515384 has applied search have the problem again what can I do now?

Edit Default.preset with "EnableWebSearch" and "DisableCortana" in Privacy Tweaks. I use Notepad++ for edit.

iamteerawut commented 4 years ago

This is probably the most generic advice ever, but try running

dism /Online /Cleanup-image /Restorehealth
sfc /scannow

as described here. The point is to try and force Windows to restore the Cortana cache using the correct files from WinSxS.

after run this now search working again Thank