From bee791f7988b91f3adf1bf19e3b6a4b534ca66e4 Mon Sep 17 00:00:00 2001 From: Xyueta Date: Sat, 21 Oct 2023 20:24:43 +0200 Subject: [PATCH] fix: CBS script --- src/playbook/Configuration/tweaks.yml | 2 ++ .../Configuration/tweaks/statuses/status-cleanup.yml | 6 ++++++ src/playbook/Executables/CLIENTCBS.ps1 | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/playbook/Configuration/tweaks/statuses/status-cleanup.yml diff --git a/src/playbook/Configuration/tweaks.yml b/src/playbook/Configuration/tweaks.yml index f22cc11dc0..6a1023af7d 100644 --- a/src/playbook/Configuration/tweaks.yml +++ b/src/playbook/Configuration/tweaks.yml @@ -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 # ----------------------------------------------------- diff --git a/src/playbook/Configuration/tweaks/statuses/status-cleanup.yml b/src/playbook/Configuration/tweaks/statuses/status-cleanup.yml new file mode 100644 index 0000000000..86ee6f6e57 --- /dev/null +++ b/src/playbook/Configuration/tweaks/statuses/status-cleanup.yml @@ -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'} \ No newline at end of file diff --git a/src/playbook/Executables/CLIENTCBS.ps1 b/src/playbook/Executables/CLIENTCBS.ps1 index 74c1c24546..c0ef2bb21f 100644 --- a/src/playbook/Executables/CLIENTCBS.ps1 +++ b/src/playbook/Executables/CLIENTCBS.ps1 @@ -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, ''