Discovery and Inventory Group

 View Only

NS7 Custom Inventory to Scan for Specified Files via the cim_datafile Class 

Oct 29, 2009 12:25 PM

The attached download queries the wmi class cim_datafile for files with certain extension. The wmi class contains all data normally found in the file header information and more!

Querying this wmi class has proven to be many, many times faster than scanning a hard drive for file information.

This sample has logic to query for all 'local drives' and to skip specified directories. The query logic itself currently queries on 'Extension' but can be modified to query on any other value in the wmi class.

The NS7 custom inventory table xml file has been included.

Statistics
0 Favorited
0 Views
2 Files
0 Shares
0 Downloads
Attachment(s)
txt file
cimdatafile.vbs_.txt   3 KB   1 version
Uploaded - Feb 25, 2020
txt file
CimDataFile_dataclass.xml_.txt   3 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.