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..."

View File

@@ -124,4 +124,10 @@ registryPath,propertyName,propertyType,propertyValue
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI",TurnOffSavingSnapshots,DWord,1
"HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI",DisableClickToDo,DWord,1
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI",DisableClickToDo,DWord,1
"HKLM:\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc",Start,DWord,3
"HKLM:\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc",Start,DWord,3
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search",CortanaConsent,DWord,0
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\SearchSettings",IsDynamicSearchBoxEnabled,DWord,0
"HKLM:\Software\Policies\BraveSoftware\Brave",BraveVPNDisabled,DWord,1
"HKLM:\Software\Policies\BraveSoftware\Brave",BraveWalletDisabled,DWord,1
"HKLM:\Software\Policies\BraveSoftware\Brave",BraveTalkDisabled,DWord,1
"HKLM:\Software\Policies\BraveSoftware\Brave",BraveNewsDisabled,DWord,1
1 registryPath propertyName propertyType propertyValue
124 HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI TurnOffSavingSnapshots DWord 1
125 HKCU:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI DisableClickToDo DWord 1
126 HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI DisableClickToDo DWord 1
127 HKLM:\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc Start DWord 3
128 HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search CortanaConsent DWord 0
129 HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\SearchSettings IsDynamicSearchBoxEnabled DWord 0
130 HKLM:\Software\Policies\BraveSoftware\Brave BraveVPNDisabled DWord 1
131 HKLM:\Software\Policies\BraveSoftware\Brave BraveWalletDisabled DWord 1
132 HKLM:\Software\Policies\BraveSoftware\Brave BraveTalkDisabled DWord 1
133 HKLM:\Software\Policies\BraveSoftware\Brave BraveNewsDisabled DWord 1