Skip to content

Instantly share code, notes, and snippets.

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