Skip to content

Invoke-LMReportExecution

Terminal window
Invoke-LMReportExecution -Id <Int32> [-WithAdminId <Int32>] [-ReceiveEmails <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Terminal window
Invoke-LMReportExecution -Name <String> [-WithAdminId <Int32>] [-ReceiveEmails <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]

Invoke-LMReportExecution starts an on-demand run of a LogicMonitor report. The report can be identified by ID or name. Optional parameters allow impersonating another admin or overriding the email recipients for the generated output.

Terminal window
Invoke-LMReportExecution -Id 42

Starts an immediate execution of the report with ID 42 using the current user’s context.

Terminal window
Invoke-LMReportExecution -Name "Monthly Availability" -WithAdminId 101 -ReceiveEmails "ops@example.com"

Runs the “Monthly Availability” report as admin ID 101 and emails the results to ops@example.com.

The ID of the report to execute.

Type: Int32
Parameter Sets: Id
Aliases:
Required: True
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

The name of the report to execute.

Type: String
Parameter Sets: Name
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

The admin ID to impersonate when generating the report. Defaults to the current user when omitted.

Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

One or more email addresses (comma-separated) that should receive the generated report.

Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Fill ProgressAction Description

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

You must run Connect-LMAccount before running this command.