Add registry entries to disable Microsoft Store search suggestions and modify Brave settings

This commit is contained in:
2026-05-17 22:51:17 +08:00
parent f2cfdbd614
commit f62ae3da43
2 changed files with 26 additions and 1 deletions

View File

@@ -133,6 +133,25 @@ foreach ($entry in $entries) {
}
}
# Disable Microsoft Store search suggestions by denying access to Store app database
Write-Host "Disabling Microsoft Store search suggestions..."
$storeDbPath = "$env:LocalAppData\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalState\store.db"
$storeDbDir = Split-Path -Path $storeDbPath -Parent
if (-not (Test-Path -Path $storeDbDir)) {
New-Item -Path $storeDbDir -ItemType Directory -Force | Out-Null
}
if (-not (Test-Path -Path $storeDbPath)) {
New-Item -Path $storeDbPath -ItemType File -Force | Out-Null
}
$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 "Microsoft Store search suggestions disabled."
# Wallpaper and Lock Screen
Write-Host "Setting desktop wallpaper and lock screen..."