Get-LMReportExecutionTask
Syntax
Section titled “Syntax”ReportId (Default)
Section titled “ReportId (Default)”Get-LMReportExecutionTask -ReportId <Int32> -TaskId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]ReportName
Section titled “ReportName”Get-LMReportExecutionTask -ReportName <String> -TaskId <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “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
Section titled “Examples”Example 1
Section titled “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
Section titled “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
Section titled “Parameters”-ReportId
Section titled “-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
Section titled “-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
Section titled “-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
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”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
Section titled “Inputs”Outputs
Section titled “Outputs”You must run Connect-LMAccount before running this command.