Created
February 6, 2020 09:40
-
-
Save pcrockett-pathway/0e93b8964eea400d3d119974a749356d to your computer and use it in GitHub Desktop.
Disable Bing search in the Windows 10 Start Menu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Disable Bing search in the Windows 10 Start Menu | |
.DESCRIPTION | |
Inspired by https://www.windowscentral.com/how-fix-taskbar-search-not-working-windows-10 | |
#> | |
[CmdletBinding()] | |
param() | |
$ErrorActionPreference = "Stop" | |
Set-StrictMode -Version 5.0 | |
$key = Get-Item "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search\" | |
$changesMade = $false | |
$bingSearchProp = "BingSearchEnabled" | |
if (0 -ne $key.GetValue($bingSearchProp)) { | |
$key | Set-ItemProperty -Name $bingSearchProp -Value 0 | |
$changesMade = $true | |
} | |
$cortanaConsentProp = "CortanaConsent" | |
if (0 -ne $key.GetValue($cortanaConsentProp)) { | |
$key | Set-ItemProperty -Name $cortanaConsentProp -Value 0 | |
$changesMade = $true | |
} | |
if ($changesMade) { | |
Write-Host -ForegroundColor Green "Success! Bing search will be disabled after you reboot your PC." | |
} else { | |
Write-Host "Bing search was already disabled." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment