IFsrmFileManagementJob::get_Task 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 name of the scheduled task to associate with the job.
This property is read/write.
Syntax
HRESULT get_Task(
BSTR *taskName
);
Parameters
taskName
Return value
None
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
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | fsrmreports.h |
DLL | SrmSvc.dll |