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..."
|
||||
|
||||
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user