From e5d57e76cf218e5682e52f95ea53b8c03a1c56c4 Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Sat, 15 Jun 2024 10:17:53 +0100 Subject: [PATCH] fix: clean component store after optional features --- src/playbook/Configuration/atlas/start.yml | 3 +++ src/playbook/Executables/CLEANUP.ps1 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/playbook/Configuration/atlas/start.yml b/src/playbook/Configuration/atlas/start.yml index e4116999ef..3ee7b65310 100644 --- a/src/playbook/Configuration/atlas/start.yml +++ b/src/playbook/Configuration/atlas/start.yml @@ -42,6 +42,9 @@ actions: - !writeStatus: {status: 'Disabling Steps Recorder'} - !run: {exe: 'DISM.exe', args: '/Online /Remove-Capability /CapabilityName:"App.StepsRecorder~~~~0.0.1.0" /NoRestart', weight: 30} + - !writeStatus: {status: 'Cleaning the component store'} + - !run: {exe: 'DISM.exe', args: '/Online /Cleanup-Image /StartComponentCleanup', weight: 50} + # Initial software # 7-Zip, Visual C++ Runtimes, DirectX - !writeStatus: {status: 'Installing utilities'} diff --git a/src/playbook/Executables/CLEANUP.ps1 b/src/playbook/Executables/CLEANUP.ps1 index b22a53c8cf..de4d2da7fb 100644 --- a/src/playbook/Executables/CLEANUP.ps1 +++ b/src/playbook/Executables/CLEANUP.ps1 @@ -23,7 +23,7 @@ function Invoke-AtlasDiskCleanup { "System error minidump files" = 2 "Temporary Files" = 0 "Thumbnail Cache" = 2 - "Update Cleanup" = 2 + "Update Cleanup" = 0 "User file versions" = 2 "Windows Error Reporting Files" = 2 "Windows Defender" = 2