Our antivirus likes to dump huge crash files into a specific directory, and I'd like to monitor that with a script if possible. I haven't been able to figure out how to check for any files with a .DMP extension. Can anyone help? Thanks! 

Answer Summary:
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


you can do this with WMIC as either a custom inventory item or create a script

substitute the correct path name.

wmic.exe datafile where "extension='dmp' and path='\\temp\\dumpfiles\\'" delete

as a script:

Answered 05/24/2013 by: SMal.tmcc
Red Belt

Please log in to comment



You could use a custom inventory rule something like this assuming C:\Program Files\Dell\KACE\x64\ for the .dmp file location:

ShellCommandTextReturn(cmd /c dir "C:\Program Files\Dell\KACE\x64\*.dmp")

It would display under Software>Custom Inventory Fields on the computer's inventory page.

Answered 05/24/2013 by: jknox
Red Belt

  • Use this to create a rule, then create a smart label for that item and use it in the script to limit deployment to selected labels.
Please log in to comment

This totally worked. Geniuses...


Thank you!

Answered 05/24/2013 by: cwood_CS
Senior White Belt

  • you're welcome, Grasshopper.
Please log in to comment
Answer this question or Comment on this question for clarity