From 7b3398fdd718128c1dbd3a5a7091cfa823ccd46a Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 14 Apr 2018 09:58:51 +0200 Subject: [PATCH] Update "Disable Web Search" for 1803 --- Win10.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Win10.ps1 b/Win10.ps1 index 70c3e29..37d278c 100644 --- a/Win10.ps1 +++ b/Win10.ps1 @@ -244,6 +244,7 @@ Function EnableSmartScreen { Function DisableWebSearch { Write-Output "Disabling Bing Search in Start Menu..." Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type DWord -Value 0 If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) { New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null } @@ -254,6 +255,7 @@ Function DisableWebSearch { Function EnableWebSearch { Write-Output "Enabling Bing Search in Start Menu..." Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -ErrorAction SilentlyContinue + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type DWord -Value 1 Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -ErrorAction SilentlyContinue }