Add registry entries to disable Microsoft Store search suggestions and modify Brave settings
This commit is contained in:
@@ -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..."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user