The SMS_G_System_CollectedFile Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that contains information about a file copied from the client computer to the site server.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_G_System_CollectedFile : SMS_G_System
	 DateTime CollectionDate;
	 UInt8 FileData[];
	 String FileName;
	 String FilePath;
	 UInt32 FileSize;
	 String LocalFilePath;
	 DateTime ModifiedDate;
	 UInt32 ResourceID;
	 UInt32 RevisionID;


The SMS_G_System_CollectedFile class does not define any methods.



Data type: DateTimeAccess type: Read/WriteQualifiers: [ResID(6509), ResDLL("SMS_RXPL.dll")]Date and time the file was collected from the client computer.

Data type: UInt8 Array Access type: Read/Write Qualifiers: [lazy, ResID(6508), ResDLL("SMS_RXPL.dll")]Contents of the file.

Data type: String Access type: Read/WriteQualifiers: [ResID(6504), ResDLL("SMS_RXPL.dll"), DefaultOrder("ASC")]Name and file name extension of the file.

Data type: String Access type: Read/Write Qualifiers: [key, ResID(6502), ResDLL("SMS_RXPL.dll")]Path to the file on the client computer.

Data type: UInt32 Access type: Read/WriteQualifiers: [ResID(6505), ResDLL("SMS_RXPL.dll")]Size of the file, in bytes.

Data type: StringAccess type: Read/WriteQualifiers: [ResID(6507), ResDLL("SMS_RXPL.dll")]Path to the file on the site server.

Data type: DateTime Access type: Read/WriteQualifiers: [ResID(6506), ResDLL("SMS_RXPL.dll")]Date and time the file was last modified.

Data type: UInt32 Access type: Read/WriteQualifiers: [key, ResID(6501), ResDLL("SMS_RXPL.dll")]See SMS_G_System Server WMI Class.

Data type: UInt32Access type: Read/WriteQualifiers: [key, ResID(6503), ResDLL("SMS_RXPL.dll")]Revision ID that increments each time an inventory is taken to identify the number of times the file has been inventoried. The file is only inventoried when it has changed.


There are no special class qualifiers for this class. For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

The Software Inventory Agent collects files identified in the site control file. To identify the files to collect, the agent:

  1. Queries the site control SMS_SCI_ClientComp Server WMI Class objects for items having the value "Software Inventory Agent" for the ClientComponentName property.

  2. Loops through the embedded property list. When the value for PropertyName is "Collectable Files", the agent updates the comma-delimited list of file names (including extensions) in the Value2 property. When the value for PropertyName is "Max Collected File Size", the agent sets a maximum size, in megabytes, for the files that Configuration Manager collects from the client, for that query, during each software inventory cycle.

  3. For any new collectable file added, adds an entry to each of the embedded property lists Collectable File Path, Collectable File Subdirectories, Collectable File Exclude, and Collectable File Max Size.

  4. Updates the site control file. For information about updating the site control file, see Configuration Manager Site Control File.

Collecting files from clients can generate a large volume of network traffic and require extensive storage space. For this reason, you should test any changes you make in a test environment before implementing them in a production environment.

Collected files are deleted on a schedule if the Delete Aged Collected Files database maintenance task is set to true in the Configuration Manager console. You can also enable this task and set the schedule by updating the site control file. The site control item is an instance of SMS_SCI_SQLTask Server WMI Class and the TaskName value is "Delete Aged Collected Files".


Runtime Requirements

Development Requirements

See Also

Send comments about this topic to Microsoft.