update regex to match folders and zip archives
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user