/build/static/layout/Breadcrumb_cap_w.png

Monitoring a specific directory for files using a wild card with K1000

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! 


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: SMal.tmcc 10 years ago
Red Belt
2

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:

Posted by: jknox 10 years ago
Red Belt
1

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.


Comments:
  • 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. - SMal.tmcc 10 years ago
Posted by: cwood_CS 10 years ago
Senior White Belt
0

This totally worked. Geniuses...

 

Thank you!


Comments:
  • you're welcome, Grasshopper. - SMal.tmcc 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ