From a8f17e0207c7317bb0c983f4eab35eaf5c4245f6 Mon Sep 17 00:00:00 2001 From: Jesse Houwing Date: Tue, 21 Nov 2023 20:16:32 +0100 Subject: [PATCH] Cleans telemetry and logs from (#8801) Running the cleanup post-tests and software inventory, as these generate more logs and more telemetry --- images/windows/scripts/build/Configure-System.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/images/windows/scripts/build/Configure-System.ps1 b/images/windows/scripts/build/Configure-System.ps1 index 853db47ea..481d52b34 100644 --- a/images/windows/scripts/build/Configure-System.ps1 +++ b/images/windows/scripts/build/Configure-System.ps1 @@ -20,7 +20,10 @@ Write-Host "Clean up various directories" "$env:SystemRoot\winsxs\manifestcache", "$env:SystemRoot\Temp", "$env:SystemDrive\Users\$env:INSTALL_USER\AppData\Local\Temp", - "$env:TEMP" + "$env:TEMP", + "$env:AZURE_CONFIG_DIR\logs", + "$env:AZURE_CONFIG_DIR\commands", + "$env:AZURE_CONFIG_DIR\telemetry" ) | ForEach-Object { if (Test-Path $_) { Write-Host "Removing $_"