Created
February 24, 2020 11:53
-
-
Save pcrockett/d9f5e2cc0176bf40f5f97536c98d0363 to your computer and use it in GitHub Desktop.
Disable Bing search and Cortana in the Windows 10 Start Menu
This file contains 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