Browse Source

do not disable searchUI by default

close #35
pull/36/head
Alex Hirsch 9 years ago
parent
commit
02a2723eef
  1. 24
      scripts/disable-windows-features.ps1

24
scripts/disable-windows-features.ps1

@ -28,18 +28,18 @@ sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" DisableWebSearch
sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" AllowSearchToUseLocation 0 sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" AllowSearchToUseLocation 0
sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" ConnectedSearchUseWeb 0 sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" ConnectedSearchUseWeb 0
echo "Disable searchUI.exe" # This will disable the startmenu search feature.
taskkill.exe /F /IM "SearchUI.exe" #echo "Disable searchUI.exe"
# try to rename folder while SearchUI is restarting #taskkill.exe /F /IM "SearchUI.exe"
foreach ($_ in (0..15)) { #foreach ($_ in (0..15)) {
if (Test-Path "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy") { # if (Test-Path "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy") {
mv "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" ` # mv "$env:windir\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" `
"$env:windir\SystemApps\_Microsoft.Windows.Cortana_cw5n1h2txyewy" ` # "$env:windir\SystemApps\_Microsoft.Windows.Cortana_cw5n1h2txyewy" `
-ErrorAction SilentlyContinue # -ErrorAction SilentlyContinue
} else { # } else {
break # break
} # }
} #}
echo "Disabling telemetry via Group Policies" echo "Disabling telemetry via Group Policies"
mkdir -Force "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" mkdir -Force "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection"

Loading…
Cancel
Save