diff --git a/2_ConfigUpdate.ps1 b/2_ConfigUpdate.ps1 index 14c6e59..c65e313 100644 --- a/2_ConfigUpdate.ps1 +++ b/2_ConfigUpdate.ps1 @@ -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..." diff --git a/registry.csv b/registry.csv index e599535..3716dbe 100644 --- a/registry.csv +++ b/registry.csv @@ -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 \ No newline at end of file +"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 \ No newline at end of file