From ab668aea49d148ee27272befedac58ecbb38b9dc Mon Sep 17 00:00:00 2001 From: Naveen Angali Date: Thu, 7 Dec 2023 13:17:24 -0500 Subject: [PATCH] Update forensics_log_pull.ps1 --- Azure-ARM/forensics_log_pull.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Azure-ARM/forensics_log_pull.ps1 b/Azure-ARM/forensics_log_pull.ps1 index f6c9714..1b8aa16 100644 --- a/Azure-ARM/forensics_log_pull.ps1 +++ b/Azure-ARM/forensics_log_pull.ps1 @@ -24,4 +24,4 @@ compress-archive -Path "$env:TEMP\all-Logs\$DT\" -DestinationPath "$env:TEMP\all copy "$env:TEMP\all-Logs-$DT.zip" "C:\fileshare\" #delete older zipped log files more than 30 days -Get-ChildItem -Path C:\Fileshare\* -Include all-logs-*.zip -Recurse | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(0)} | Remove-Item \ No newline at end of file +Get-ChildItem -Path C:\Fileshare\* -Include all-logs-*.zip -Recurse | Where-Object {$_.LastWriteTime -lt (Get-Date).AddDays(-30)} | Remove-Item \ No newline at end of file