Skip to content

Commit

Permalink
Comment DisableWebSearch and add a note about breakage in 18362.329. C…
Browse files Browse the repository at this point in the history
  • Loading branch information
Disassembler0 committed Sep 4, 2019
1 parent b67cde2 commit fb04190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Default.preset
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RequireAdmin
DisableTelemetry # EnableTelemetry
DisableWiFiSense # EnableWiFiSense
# DisableSmartScreen # EnableSmartScreen
DisableWebSearch # EnableWebSearch
# DisableWebSearch # EnableWebSearch
DisableAppSuggestions # EnableAppSuggestions
DisableActivityHistory # EnableActivityHistory
DisableBackgroundApps # EnableBackgroundApps
Expand Down
6 changes: 6 additions & 0 deletions Win10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ Function EnableSmartScreen {
# Disable Web Search in Start Menu
Function DisableWebSearch {
Write-Output "Disabling Bing Search in Start Menu..."
# Build 10.0.18362.329 contains a bug breaking Start Menu search if DisableWebSearch is applied
# See https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/262 for details and ways to fix the problem
If ((Get-ItemProperty -Path c:\windows\system32\hal.dll).VersionInfo.ProductVersion -eq "10.0.18362.329") {
Write-Warning "Build 10.0.18362.329 contains a bug breaking Start Menu search if DisableWebSearch is applied."
Write-Warning "See https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/262 for details and ways to fix the problem."
}
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")) {
Expand Down

0 comments on commit fb04190

Please sign in to comment.