Get-LMReportExecutionTask
Syntax
ReportId (Default)
Get-LMReportExecutionTask -ReportId <Int32> -TaskId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]ReportName
Get-LMReportExecutionTask -ReportName <String> -TaskId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Get-LMReportExecutionTask fetches information about a previously triggered report execution task. Supply the report identifier (ID or name) along with the task ID returned from Invoke-LMReportExecution to check completion status or retrieve the result URL.
Examples
Example 1
Invoke-LMReportExecution -Id 42 | Select-Object -ExpandProperty taskId | Get-LMReportExecutionTask -ReportId 42Gets the execution status for the specified report/task combination.
Example 2
$task = Invoke-LMReportExecution -Name "Monthly Availability"Get-LMReportExecutionTask -ReportName "Monthly Availability" -TaskId $task.taskIdChecks the task status for the report by name.
Parameters
-ReportId
The ID of the report whose execution task should be retrieved.
Type: Int32Parameter Sets: ReportIdAliases:
Required: TruePosition: NamedDefault value: 0Accept pipeline input: FalseAccept wildcard characters: False-ReportName
The name of the report whose execution task should be retrieved.
Type: StringParameter Sets: ReportNameAliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TaskId
The execution task identifier returned when the report was triggered.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
Outputs
Notes
You must run Connect-LMAccount before running this command.