need to specify full file name to delete it from the right location

This commit is contained in:
2020-11-18 20:30:26 -05:00
parent f3c9759a4e
commit d9b0ef334b
+1 -1
View File
@@ -58,7 +58,7 @@ If ( IsAdmin )
If ( $GenetecCrashDumps )
{
LogMsg "Deleting Genetec application crash dumps"
Try { ForEach ( $dump in $GenetecCrashDumps ) { Remove-Item $dump -Force -Recurse -ErrorAction SilentlyContinue } }
Try { ForEach ( $dump in $GenetecCrashDumps ) { Remove-Item $dump.FullName -Force -Recurse -ErrorAction SilentlyContinue } }
Catch { LogErr $_.Exception.Message }
}
}