Windows Dev Center

IFsrmFileManagementJob::Task property

[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 name of the scheduled task to associate with the job.

This property is read/write.

Syntax


HRESULT put_Task(
  [in]  BSTR taskName
);

HRESULT get_Task(
  [out] BSTR *taskName
);

Property value

A unique task name. The string is limited to 230 characters.

Error codes

The method returns the following return values.

NameMeaning
S_OK

Success

E_INVALIDARG

The name cannot contain the following characters: [^,\'/"|]+

Remarks

Typically, the name is the same name that you specify when you call the IFsrmReportScheduler::CreateScheduleTask method to create a scheduled task that runs the job.

The command that you specify for the scheduled job is C:\Windows\System32\Storrept.exe. The arguments that you specify for Storrept.exe are "FileMgmt Run /Scheduled /Task:taskname", where taskname is the value of this property.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 R2

Header

FsrmReports.h

DLL

SrmSvc.dll

IID

IID_IFsrmFileManagementJob is defined as 0770687e-9f36-4d6f-8778-599d188461c9

See also

IFsrmFileManagementJob
MSFT_FSRMFileManagementJob

 

 

Show:
© 2015 Microsoft