From 27f6ba020cf1e3de29a0f332c871dbf8f9c6c815 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Sun, 30 Aug 2015 12:16:27 +0200 Subject: [PATCH] remove disabling of searchUI.exe since it can be removed via dism.exe --- scripts/disable-windows-features.ps1 | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/scripts/disable-windows-features.ps1 b/scripts/disable-windows-features.ps1 index e96cfef..32a4320 100644 --- a/scripts/disable-windows-features.ps1 +++ b/scripts/disable-windows-features.ps1 @@ -28,19 +28,6 @@ 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\" ConnectedSearchUseWeb 0 -# This will disable the startmenu search feature. -#echo "Disable searchUI.exe" -#taskkill.exe /F /IM "SearchUI.exe" -#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" ` -# -ErrorAction SilentlyContinue -# } else { -# break -# } -#} - echo "Disabling telemetry via Group Policies" mkdir -Force "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" sp "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" "AllowTelemetry" 0