From 145e9809c3ee43e9140e814287e7cd0fd15229a7 Mon Sep 17 00:00:00 2001 From: narutards Date: Thu, 20 Aug 2015 13:15:32 +0200 Subject: [PATCH 1/2] Create disable_searchfeatures.ps1 This script will disable certain unwanted startmenu search features --- scripts/disable_searchfeatures.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/disable_searchfeatures.ps1 diff --git a/scripts/disable_searchfeatures.ps1 b/scripts/disable_searchfeatures.ps1 new file mode 100644 index 0000000..b3cc05b --- /dev/null +++ b/scripts/disable_searchfeatures.ps1 @@ -0,0 +1,12 @@ +# Description: +# This script will disable certain unwanted startmenu search features + +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name AllowCortana -Value 0 +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name DisableWebSearch -Value 1 +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name AllowSearchToUseLocation -Value 0 +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name ConnectedSearchUseWeb -Value 0 + +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name AllowCortana -Value 0 +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name DisableWebSearch -Value 1 +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name AllowSearchToUseLocation -Value 0 +Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name ConnectedSearchUseWeb -Value 0 From 32f53b5e25f251b7325a3362622c47fc7116d37b Mon Sep 17 00:00:00 2001 From: narutards Date: Fri, 21 Aug 2015 08:14:49 +0200 Subject: [PATCH 2/2] Update disable_searchfeatures.ps1 --- scripts/disable_searchfeatures.ps1 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/disable_searchfeatures.ps1 b/scripts/disable_searchfeatures.ps1 index b3cc05b..57885d1 100644 --- a/scripts/disable_searchfeatures.ps1 +++ b/scripts/disable_searchfeatures.ps1 @@ -1,12 +1,10 @@ # Description: # This script will disable certain unwanted startmenu search features +if (-Not (Get-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Windows Search\' -ErrorAction SilentlyContinue)) { + New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' +} Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name AllowCortana -Value 0 Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name DisableWebSearch -Value 1 Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name AllowSearchToUseLocation -Value 0 Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\' -Name ConnectedSearchUseWeb -Value 0 - -Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name AllowCortana -Value 0 -Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name DisableWebSearch -Value 1 -Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name AllowSearchToUseLocation -Value 0 -Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\Windows Search\' -Name ConnectedSearchUseWeb -Value 0