From 144c44e6dc245e158ff5a0bfa023e40f2df108bf Mon Sep 17 00:00:00 2001 From: dyoder Date: Tue, 8 Sep 2020 22:30:08 -0400 Subject: [PATCH] added Microsoft-Windows-SettingSync_*.evts --- Cleanup-SystemTempFiles.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Cleanup-SystemTempFiles.ps1 b/Cleanup-SystemTempFiles.ps1 index c75685c..021456b 100644 --- a/Cleanup-SystemTempFiles.ps1 +++ b/Cleanup-SystemTempFiles.ps1 @@ -12,6 +12,7 @@ If ( (IsWindowsVersion -ge "6.2") ) Get-ChildItem -Path $SysTemp | Where { $_.Name -like "Microsoft-Windows-WindowsUpdateClient_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue Get-ChildItem -Path $SysTemp | Where { $_.Name -like "Microsoft-Windows-Store_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue Get-ChildItem -Path $SysTemp | Where { $_.Name -like "Microsoft-Windows-StateRepository_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue + Get-ChildItem -Path $SysTemp | Where { $_.Name -like "Microsoft-Windows-SettingSync_*.evtx" } | Remove-Item -Force -ErrorAction SilentlyContinue } ## Remove computer log files