From 02a2723eefbff6b1832181e8e7efefcd52da2a48 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Mon, 24 Aug 2015 15:52:30 +0200 Subject: [PATCH] do not disable searchUI by default close #35 --- scripts/disable-windows-features.ps1 | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/disable-windows-features.ps1 b/scripts/disable-windows-features.ps1 index 8ddbb47..b51bcee 100644 --- a/scripts/disable-windows-features.ps1 +++ b/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\" ConnectedSearchUseWeb 0 -echo "Disable searchUI.exe" -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" ` - -ErrorAction SilentlyContinue - } else { - break - } -} +# 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"