Last active
September 6, 2019 18:09
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of using script just uninstall update KB4512941