Skip to content

Commit ae6d065

Browse files
committed
feat: disable razer installs by default & store search recs
1 parent da97515 commit ae6d065

3 files changed

Lines changed: 47 additions & 0 deletions

File tree

src/playbook/Configuration/tweaks.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ actions:
155155
- !task: {path: 'tweaks\qol\disable-settings-tips.yml'}
156156
- !task: {path: 'tweaks\qol\disable-spell-checking.yml'}
157157
- !task: {path: 'tweaks\qol\disable-store-auto-updates.yml'}
158+
- !task: {path: 'tweaks\qol\disable-store-search-recommendations.yml'}
158159
- !task: {path: 'tweaks\qol\disable-touch-keyboard-features.yml'}
159160
- !task: {path: 'tweaks\qol\disable-touch-visual-feedback.yml'}
160161
- !task: {path: 'tweaks\qol\disable-usb-issues-notifications.yml'}
@@ -236,6 +237,7 @@ actions:
236237
- !task: {path: 'tweaks\qol\explorer\dont-show-office-files.yml'}
237238
- !task: {path: 'tweaks\qol\explorer\use-compact-mode.yml'}
238239
- !task: {path: 'tweaks\qol\explorer\disable-gallery.yml'}
240+
- !task: {path: 'tweaks\qol\explorer\disable-home.yml'}
239241
- !task: {path: 'tweaks\qol\explorer\debloat-send-to.yml'}
240242
- !task: {path: 'tweaks\qol\explorer\enable-long-paths.yml'}
241243

@@ -322,6 +324,7 @@ actions:
322324
- !task: {path: 'tweaks\debloat\config-content-delivery.yml'}
323325
- !task: {path: 'tweaks\debloat\disable-reserved-storage.yml'}
324326
- !task: {path: 'tweaks\debloat\disable-scheduled-tasks.yml'}
327+
- !task: {path: 'tweaks\debloat\block-razer-installs.yml'}
325328
- !task: {path: 'tweaks\debloat\hide-unused-security-pages.yml'}
326329
- !task: {path: 'tweaks\debloat\config-storage-sense.yml'}
327330

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Block Razer Software Auto Install
3+
description: Blocks automatic Razer software installation on newly connected Razer devices or fresh install
4+
actions:
5+
- !registryValue:
6+
path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching'
7+
value: 'SearchOrderConfig'
8+
data: '0'
9+
type: REG_DWORD
10+
11+
- !registryValue:
12+
path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Installer'
13+
value: 'DisableCoInstallers'
14+
data: '1'
15+
type: REG_DWORD
16+
17+
- !powerShell:
18+
command: |
19+
$razerPath = "$env:windir\Installer\Razer"
20+
21+
New-Item -Path $razerPath -ItemType Directory -Force | Out-Null
22+
Get-ChildItem -LiteralPath $razerPath -Force -ErrorAction SilentlyContinue |
23+
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
24+
25+
icacls $razerPath /deny "*S-1-1-0:(W)" | Out-Null
26+
runas: currentUserElevated
27+
wait: true
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Disable Microsoft Store Recommended Search Results
3+
description: Disables recommended Microsoft Store apps in Start Menu
4+
actions:
5+
- !powerShell:
6+
command: |
7+
$storeDb = "$env:LocalAppData\Packages\Microsoft.WindowsStore_8wekyb3d8bbwe\LocalState\store.db"
8+
$storeDbParent = Split-Path -Path $storeDb -Parent
9+
10+
New-Item -Path $storeDbParent -ItemType Directory -Force | Out-Null
11+
if (!(Test-Path -LiteralPath $storeDb)) {
12+
New-Item -Path $storeDb -ItemType File -Force | Out-Null
13+
}
14+
15+
icacls $storeDb /deny "*S-1-1-0:F" | Out-Null
16+
runas: currentUserElevated
17+
wait: true

0 commit comments

Comments
 (0)