get all zip file dumps instead of patern matching
This commit is contained in:
@@ -51,7 +51,7 @@ If ( IsAdmin )
|
||||
|
||||
## Remove Genetec application crash dumps
|
||||
If ( Test-Path "${Env:ProgramData}\Genetec\Dumps" ) {
|
||||
$GenetecCrashDumps = Get-ChildItem -Path "${Env:ProgramData}\Genetec\Dumps" | Where { $_.Name -match "^.*_Crash(\.zip)?$" }
|
||||
$GenetecCrashDumps = Get-ChildItem -Path "${Env:ProgramData}\Genetec\Dumps" -Filter *.zip
|
||||
If ( $GenetecCrashDumps )
|
||||
{
|
||||
LogMsg "Deleting Genetec application crash dumps"
|
||||
|
||||
Reference in New Issue
Block a user