IFsrmFileManagementJob::get_ExpirationDirectory method (fsrmreports.h)

[This property is supported for compatibility but it's recommended to use the FSRM WMI Classes to manage FSRM. Please see the MSFT_FSRMFileManagementJob class.]

The root directory that will contain the expired files.

This property is read/write.

Syntax

HRESULT get_ExpirationDirectory(
  BSTR *expirationDirectory
);

Parameters

expirationDirectory

Return value

None

Remarks

FSRM moves the files that meet all of the file management job's conditions to this directory when the job is run, therefore the running process must have write permission. The directory must also be located on an NTFS volume.

FSRM maintains the file's current directory structure in the expired directory so you can determine its previous location. For example, if FSRM expired the file, "C:\TestExpired\Test1.txt", the expired root directory would contain:

"FsrmServer(FQDN)\JobName_TimeStamp\C$\TestExpired\Test1.txt"

The expired file's ACLs are maintained with the file.

If the expiration directory does not exist, FSRM creates the directory (with administrator access rights only).

Do not specify an expiration directory that is in the NamespaceRoots path.

Specify only if OperationType is FsrmFileManagementType_Expiration.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header fsrmreports.h
DLL SrmSvc.dll

See also

IFsrmFileManagementJob

MSFT_FSRMFileManagementJob