Skip to content

Commit

Permalink
fix: CBS script
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 21, 2023
1 parent de5d9f3 commit bee791f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/playbook/Configuration/tweaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ tasks:
- tweaks\scripts\script-power.yml
- tweaks\scripts\script-finalize.yml
- tweaks\scripts\script-backup2.yml
# Cleanup script takes longer to finish so it has its own status
- tweaks\statuses\status-cleanup.yml
- tweaks\scripts\script-cleanup.yml

# -----------------------------------------------------
Expand Down
6 changes: 6 additions & 0 deletions src/playbook/Configuration/tweaks/statuses/status-cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Status in AME Wizard for cleaner script
description: Displays a status in AME Wizard for a specified category
privilege: TrustedInstaller
actions:
- !writeStatus: {status: 'Cleaning up'}
5 changes: 4 additions & 1 deletion src/playbook/Executables/CLIENTCBS.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Remove ads from the 'Accounts' page in Immersive Control Panel
# Remove ads from the 'Accounts' page in Immersive Control Panel
# Made by Xyueta

$Cbs = "$env:windir\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy"
$content = Get-Content -Path "$Cbs\Public\wsxpacks.json"
$pattern = '^\s*"Windows\.Settings\.Account".*'
$modifiedContent = $content -replace $pattern, ''
Expand Down

0 comments on commit bee791f

Please sign in to comment.