From efccd5f817d1ecf0a2f976941ebc8a2a394af35e Mon Sep 17 00:00:00 2001 From: dyoder Date: Tue, 8 Sep 2020 22:25:45 -0400 Subject: [PATCH] added Microsoft-Windows-WindowsUpdateClient_*.evts --- Cleanup-SystemTempFiles.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Cleanup-SystemTempFiles.ps1 b/Cleanup-SystemTempFiles.ps1 index 7e2381f..8508bd9 100644 --- a/Cleanup-SystemTempFiles.ps1 +++ b/Cleanup-SystemTempFiles.ps1 @@ -9,6 +9,7 @@ If ( (IsWindowsVersion -ge "6.2") ) Get-ChildItem -Path $SysTemp | Where { $_.Name -like "AppXPackaging_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue Get-ChildItem -Path $SysTemp | Where { $_.Name -like "Application_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue Get-ChildItem -Path $SysTemp | Where { $_.Name -like "System_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue + Get-ChildItem -Path $SysTemp | Where { $_.Name -like "Microsoft-Windows-WindowsUpdateClient_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue } ## Remove computer log files