Disable Microsoft Store app suggestions in search

Start Menu & SearchVersión mínima de Windows: 22621

This will disable the Microsoft Store app suggestions in Windows search.

Código para aplicar

Este ajuste usa comandos de PowerShell directamente (sin cambios en el Registry).
Disable Microsoft Store app suggestions in searchPowerShell
# Disable Microsoft Store search suggestions in the Start Menu
# Denies access to the Store app database file to prevent search suggestions

$storeDbPath = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalState\store.db"

if (-not (Test-Path $storeDbPath)) {
    Write-Host "Store database not found, creating placeholder to prevent Windows from recreating it..." -ForegroundColor Yellow
    $storeDbDir = Split-Path -Path $storeDbPath -Parent
    if (-not (Test-Path $storeDbDir)) {
        New-Item -Path $storeDbDir -ItemType Directory -Force | Out-Null
    }
    New-Item -Path $storeDbPath -ItemType File -Force | Out-Null
}

# Deny FullControl for EVERYONE on the Store database file
$AccountSid = [System.Security.Principal.SecurityIdentifier]::new('S-1-1-0')
$Acl = Get-Acl -Path $storeDbPath
$Ace = [System.Security.AccessControl.FileSystemAccessRule]::new($AccountSid, 'FullControl', 'Deny')
$Acl.SetAccessRule($Ace) | Out-Null
Set-Acl -Path $storeDbPath -AclObject $Acl | Out-Null

Write-Host "Disabled Microsoft Store search suggestions" -ForegroundColor Green

¿Quieres combinarlo con otros ajustes?

Abrir configurador