Get-LMDiagnosticRemediationExecutionResult
Syntax
Section titled “Syntax”Host (Default)
Section titled “Host (Default)”Get-LMDiagnosticRemediationExecutionResult -HostId <int> [-ModuleType <string>] [-DiagnosticSourceId <int>] [-DiagnosticSourceName <string>] [-RemediationSourceId <int>] [-RemediationSourceName <string>] [-StartTime <datetime>] [-EndTime <datetime>] [-BatchSize <int>] [<CommonParameters>]Get-LMDiagnosticRemediationExecutionResult -AlertId <string> [-ModuleType <string>] [-DiagnosticSourceId <int>] [-DiagnosticSourceName <string>] [-RemediationSourceId <int>] [-RemediationSourceName <string>] [-StartTime <datetime>] [-EndTime <datetime>] [-BatchSize <int>] [<CommonParameters>]Description
Section titled “Description”The Get-LMDiagnosticRemediationExecutionResult function retrieves execution history for diagnostic and remediation modules. All matching results are returned automatically.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Get-LMDiagnosticRemediationExecutionResult -HostId 123 -DiagnosticSourceName "Disk Check"EXAMPLE 2
Section titled “EXAMPLE 2”Get-LMDiagnosticRemediationExecutionResult -AlertId "DS12345"Parameters
Section titled “Parameters”-AlertId
Section titled “-AlertId”The alert ID to filter execution results.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Alert Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-BatchSize
Section titled “-BatchSize”The number of results to return per request. Must be between 1 and 1000. Defaults to 1000.
Type: System.Int32DefaultValue: 1000SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DiagnosticSourceId
Section titled “-DiagnosticSourceId”The diagnostic source ID to filter results.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DiagnosticSourceName
Section titled “-DiagnosticSourceName”The diagnostic source name to filter results. Resolved to an ID via Get-LMDiagnosticSource.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EndTime
Section titled “-EndTime”End of the time range to query.
Type: System.DateTimeDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-HostId
Section titled “-HostId”The host (device) ID to filter execution results.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: Host Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ModuleType
Section titled “-ModuleType”Filter by module type.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RemediationSourceId
Section titled “-RemediationSourceId”The remediation source ID to filter results.
Type: System.Int32DefaultValue: 0SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RemediationSourceName
Section titled “-RemediationSourceName”The remediation source name to filter results. Resolved to an ID via Get-LMRemediationSource.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-StartTime
Section titled “-StartTime”Start of the time range to query.
Type: System.DateTimeDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.