In Configuration Manager, the FileCollectionAction class is a client Windows Management Instrumentation (WMI) class that associates a set of file collection rules with reporting details, tying together files to collect with the destination of the report.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.
Class FileCollectionAction : SMS_FileCollectionAgent_Policy { String CollectionType; UInt32 DefaultTimeout; Boolean DeleteFilesAfterCollection; String Description; String FileCollectionActionID; String FileDestination; String FileType; UInt32 MaxTotalFileSize; String PolicyID; String PolicyInstanceID; UInt32 PolicyPrecedence; String PolicyRuleID; String PolicySource; String PolicyVersion; Boolean ReportFileDetails; UInt32 ReportTimeout; UInt32 ScanInterval; String SkipScan; }; |
Methods
The FileCollectionAction class does not define any methods.
Properties
- CollectionType
- Data type: StringAccess type: Read/WriteQualifiers:
NoneType of file collection report. The possible values are:
Full
Report contains all files collected by the associated CollectableFileItem queries.
Delta
Report contains files that have changed since the last report.
Resync
Report contains files in full report and also contains all files collected, but it is triggered by a site policy resynchronization request.
- DefaultTimeout
- Data type: UInt32Access type: Read/WriteQualifiers: NoneTimeout value, in milliseconds, for each file system inventory provider query executed. The default value is 7,200,000 milliseconds.
- DeleteFilesAfterCollection
- Data type: BooleanAccess type: Read/WriteQualifiers: NoneValue used to indicate whether collected files should be deleted from the client after collection. For IDMIF collection, this value is true. The collection results are similar to moving the files from the client to the destination. For software file collection, this value is false. The collection results are similar to copying the files from the client to the destination.
- Description
- Data type: StringAccess type: Read/WriteQualifiers: NoneText field that describes the file collection action. The predefined description values are File Collection and IDMIF Collection.
- FileCollectionActionID
- Data type: StringAccess type: Read/WriteQualifiers:
[realkey]Unique ID for the file collection action. Possible values
are:
Software File Collection
{00000000-0000-0000-0000-000000000010}
IDMIF Collection
{00000000-0000-0000-0000-000000000012}
- FileDestination
- Data type: StringAccess type: Read/WriteQualifiers: NoneDestination address for the generated report. For more information about field format, see Configuration Manager Management Point Interface Messages.
- FileType
- Data type: StringAccess type: Read/WriteQualifiers:
NoneType of collected file attachments for a report. Possible
values are:
- FILECOLL
- IDMIF
- FILECOLL
- MaxTotalFileSize
- Data type: UInt32Access type: Read/WriteQualifiers: NoneCumulative maximum size of collected files in a generated report. The Inventory Agent ensures that the overall file attachment size does not exceed this value.
- PolicyID
- Data type: StringAccess type: Read/WriteQualifiers: [key]Unique ID of the policy.
- PolicyInstanceID
- Data type: StringAccess type: Read/WriteQualifiers: [key]Unique ID of the policy instance.
- PolicyPrecedence
- Data type: UInt32Access type: Read/WriteQualifiers: NonePrecedence for the policy.
- PolicyRuleID
- Data type: StringAccess type: Read/WriteQualifiers: Key Unique ID of the rule used to create the policy.
- PolicySource
- Data type: StringAccess type: Read/WriteQualifiers: [key]Source of the policy.
- PolicyVersion
- Data type: StringAccess type: Read/WriteQualifiers: [key]Version of the policy.
- ReportFileDetails
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue to include external file details for each file attachment in the generated report for software file collection. The generated report contains the original file name, path, size, and modified date.
- ReportTimeout
- Data type: UInt32Access type: Read/WriteQualifiers: NoneTimeout value used by the client framework for expiring the inventory report (message) sent by the Inventory Agent to the management point. If the inventory report cannot be sent to the management point, the client framework continues to hold on to the message until the report timeout interval. It periodically tries to resend the message.
- ScanInterval
- Data type: UInt32Access type: Read/WriteQualifiers: NoneDelay, in milliseconds, to pass to the file system inventory provider for the file collection scan.
- SkipScan
- Data type: StringAccess type: Read/WriteQualifiers: NoneFile name used to prevent the scanning of a directory. This value is typically set to Skpswi.dat for software file collection. It is typically not set for IDMIF collection.
Remarks
This class is similar to the InventoryAction, with the main difference being the type of collection files for file collection and WMI instances for inventory.
Two predefined file collection actions are provided through the site policy: software file collection and IDMIF collection. For each of these file collection actions, the Inventory Agent generates a report with attachments, based on queries built from CollectableFileItem instances. The generated report is sent to the specified destination.
Requirements
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.