How to work with file attributes

Managing file attributes is programmatically accomplished through the File Server Resource Manager (FSRM) APIs.

What you need to know



The FSRM API is designed for use by C, C++, and Visual Basic programmers, and those writing scripts. Familiarity with COM, file systems, and storage is required.


  • All Windows Server 2012 user interfaces use the DisplayName attribute in addition to the original Name attribute.

    Windows Server 2008 R2:  Property definitions had only a Name attribute.
  • The clear, enumerate, get, and set APIs all use the Name attribute.
    • enumerate behavior does not require property definitions. It simply returns all known properties for a given file.
    • get attempts to find any property with the given Name.
    • To set properties on a file, you must first know which properties are defined. A check is needed for property availability before running a set routine.
    Windows Server 2008 R2:  The clear API is not available.

For more information about FSRM file attribute management, see the IFsrmPropertyBag interface.


Checking for property availability has not been added to the FSRM samples delivered with Windows Server 2012.

Related topics

Dynamic Access Control developer extensibility
How to enrich audit reporting



Build date: 9/20/2012