mirror of
https://github.com/W4RH4WK/Debloat-Windows-10.git
synced 2024-11-15 18:12:57 +00:00
add disable-searchui script
This commit is contained in:
parent
0356a5e2eb
commit
c82809920f
14
scripts/disable-searchui.ps1
Normal file
14
scripts/disable-searchui.ps1
Normal file
@ -0,0 +1,14 @@
|
||||
# Description:
|
||||
# This script will rename the Cortana app folder so SeachUI.exe cannot be
|
||||
# started.
|
||||
|
||||
taskkill.exe /F /IM "SearchUI.exe"
|
||||
|
||||
# try to rename folder while SearchUI is restarting
|
||||
foreach ($_ in (0..15)) {
|
||||
if (Test-Path "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy") {
|
||||
mv "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" "$env:windir\SystemApps\_Microsoft.Windows.Cortana_cw5n1h2txyewy"
|
||||
} else {
|
||||
break
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user