In Configuration Manager, the FileSystemFile class is a client Windows Management Instrumentation (WMI) class that represents local file information.
The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.
Class FileSystemFile { String AgentCreatedWMIPath; String CompanyName; DateTime CreationDate; DateTime FileBuildDate; String FileDescription; UInt32 FileFunctionType; UInt32 FileGeneralType; String FileInternalName; String FileOriginalName; UInt32 FileOSFlags; String FileVersion; UInt32 FileVersionFlags; Boolean IsArchived; Boolean IsCompressed; Boolean IsEncrypted; Boolean IsHidden; Boolean IsNormal; Boolean IsOffline; Boolean IsReadOnly; Boolean IsReparsePoint; Boolean IsSparseFile; Boolean IsSystem; Boolean IsTemporary; DateTime LastAccessDate; DateTime LastWriteDate; String Name; String Path; UInt32 ProductLanguage; String ProductName; String ProductVersion; UInt32 ReservedFlags0; UInt32 ReservedFlags1; String ShortName; UInt64 Size; UInt32 Type; }; |
Methods
The FileSystemFile class does not define any methods.
Properties
- AgentCreatedWMIPath
- Data type: StringAccess type: Read/WriteQualifiers: NoneThe WMI path created by the agent.
- CompanyName
- Data type: StringAccess type: Read/WriteQualifiers: [key] Company name stored in the file resource header.
- CreationDate
- Data type: DateTimeAccess type: Read/WriteQualifiers: NoneTime the file was created according to the operating system.
- FileBuildDate
- Data type: DateTimeAccess type: Read/WriteQualifiers: NoneTime stamp, from the file resource header, of the files creation.
- FileDescription
- Data type: StringAccess type: Read/WriteQualifiers: [key] File description stored in the file resource header.
- FileFunctionType
- Data type: UInt32Access type: Read/WriteQualifiers: NoneFunction type of the file, dependent on the general type (such as DRV + PRINTER). For more information, see VS_FIXEDFILEINFO in the Platform SDK.
- FileGeneralType
- Data type: UInt32Access type: Read/WriteQualifiers: NoneGeneral type of the file (such as APP, DLL, and DRV). For more information, see VS_FIXEDFILEINFO in the Platform SDK.
- FileInternalName
- Data type: StringAccess type: Read/WriteQualifiers: NoneInternal file name stored in the file resource header.
- FileOriginalName
- Data type: StringAccess type: Read/WriteQualifiers: NoneOriginal file name stored in the file resource header.
- FileOSFlags
- Data type: UInt32Access type: Read/WriteQualifiers: NoneBitmask with the operating system values that the file was designed for (such as Windows NT and WIN32). For more information, see VS_FIXEDFILEINFO in the Platform SDK.
- FileVersion
- Data type: StringAccess type: Read/WriteQualifiers: [key] File version stored in the files resource header.
- FileVersionFlags
- Data type: UInt32Access type: Read/WriteQualifiers: None Bitmask specifying various version attributes of the file (such as DEBUG, PATCHED, and PRIVATE). For more information, see VS_FIXEDFILEINFO in the Platform SDK.
- IsArchived
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file archive bit is set.
- IsCompressed
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file is compressed.
- IsEncrypted
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file is encrypted.
- IsHidden
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file is hidden.
- IsNormal
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if no other file attributes are set.
- IsOffline
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file data is not immediately available.
- IsReadOnly
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file is read-only. An application cannot write to or delete the file.
- IsReparsePoint
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file has an associated reparse point.
- IsSparseFile
- Data type: BooleanAccess type: Read/WriteQualifiers: NoneTrue if the file is a sparse file.
- IsSystem
- Data type: BooleanAccess type: Read/WriteQualifiers: None True if the file is a system file.
- IsTemporary
- Data type: BooleanAccess type: Read/WriteQualifiers: Nonetrue if the file is being used for temporary storage.
- LastAccessDate
- Data type: DateTimeAccess type: Read/WriteQualifiers: NoneTime, according to the operating system, when the file was last accessed.
- LastWriteDate
- Data type: DateTimeAccess type: Read/WriteQualifiers: NoneTime when the file was last written to, according to the operating system.
- Name
- Data type: StringAccess type: Read/WriteQualifiers: [key] Name of the file, with wildcards that are supported in the query (such as drv*.sys). This string is the long file name (if different from the 8.3 representation).
- Path
- Data type: StringAccess type: Read/WriteQualifiers: [key]File path, not including the file name. The provider supports limited wildcards and directory vs. single directory scan syntax for querying based on this property. The provider also supports path queries with unexpanded environment variables, such as %windir%.
- ProductLanguage
- Data type: UInt32Access type: Read/WriteQualifiers: [key] Product language stored in the file resource header.
- ProductName
- Data type: StringAccess type: Read/WriteQualifiers: [key] Product name stored in the file resource header.
- ProductVersion
- Data type: StringAccess type: Read/WriteQualifiers: [key] Product version stored in the file resource header.
- ReservedFlags0
- Data type: UInt32Access type: Read/WriteQualifiers: NoneProvided for completeness. For more information, see WIN32_FIND_DATA.
- ReservedFlags1
- Data type: UInt32Access type: Read/WriteQualifiers: NoneProvided for completeness. For more information, see WIN32_FIND_DATA.
- ShortName
- Data type: StringAccess type: Read/WriteQualifiers: None8.3 representation of the file name.
- Size
- Data type: UInt64Access type: Read/WriteQualifiers: [key] File size, in bytes (a 64-bit value).
- Type
- Data type: UInt32Access type: Read/WriteQualifiers: NoneFile attribute bitmask, which matches the attribute bitmask returned by the Win32 GetFileAttributes function. The individual bits are also broken out into separate Boolean values for ease of querying and filtering.
Remarks
This class is used primarily for software inventory, file collection, and IDMIF collection.
To convert properties of this class to their WIN32_FIND_DATA equivalent, consult the WMI SDK.
Requirements
Runtime Requirements
For more information, see Configuration Manager Client Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Client Development Requirements.
See Also
Send comments about this topic to Microsoft.