update regex to match folders and zip archives

This commit is contained in:
2020-11-18 20:22:44 -05:00
parent c08383272d
commit f3c9759a4e
+1 -1
View File
@@ -54,7 +54,7 @@ If ( IsAdmin )
}
## Remove Genetec application crash dumps
$GenetecCrashDumps = Get-ChildItem -Path "${Env:ProgramData}\Genetec\Dumps" | Where { $_.Name -match "^.*_Crash$" }
$GenetecCrashDumps = Get-ChildItem -Path "${Env:ProgramData}\Genetec\Dumps" | Where { $_.Name -match "^.*_Crash(\.zip)?$" }
If ( $GenetecCrashDumps )
{
LogMsg "Deleting Genetec application crash dumps"