Skip to content

Instantly share code, notes, and snippets.

@jgaydos
Last active September 6, 2019 18:09
Show Gist options
  • Save jgaydos/244e49d87907d09574e442f41b60b118 to your computer and use it in GitHub Desktop.
Save jgaydos/244e49d87907d09574e442f41b60b118 to your computer and use it in GitHub Desktop.
Cortana broke and maxing a CPU core? I say no more! With this magic jank script you can reclame your system resources. Note: Does not fix Cortana, just kills process.
@ECHO OFF
echo Running
:wait
tasklist /FI "IMAGENAME eq SearchUI.exe" 2>nul | find /I "SearchUI.exe" >nul
if not errorlevel 1 goto found
echo Waiting 10 seconds
timeout /T 10 /NOBREAK>nul
goto wait
:found
echo Killing Cortana
set /a counter=0
:kill
taskkill /IM "SearchUI.exe" /F 2>nul
if %counter% == 10 goto :wait
set /a counter+=1
timeout /T 5 /NOBREAK>nul
goto kill
@jgaydos
Copy link
Author

jgaydos commented Sep 6, 2019

Instead of using script just uninstall update KB4512941

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment