added Microsoft-Windows-StateRepository_*.evtx

This commit is contained in:
2020-09-08 22:28:43 -04:00
parent bf1ae6eb3a
commit 1fb8d24d2e
+1
View File
@@ -11,6 +11,7 @@ If ( (IsWindowsVersion -ge "6.2") )
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
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
}
## Remove computer log files