Gets the details of the last run or runs of specified management agent


Get-LastRunDetails  [-MA] <String> [[-Count] <Int32>] [<CommonParameters>]


Gets the first, or the specified number of run history items for the management agent, starting with the most recent item.


-MA <string>

The management agent to get the run details from

-Count <Int32>

The number of run history items to return (starting from the most recent). Leaving this value unspecified will return the last run history item


This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about CommonParameters.


Get the most recent run details

PS C:\> Get-LastRunDetails -MA ADMA

Get the details of the last 5 runs

PS C:\> Get-LastRunDetails -MA ADMA -Count 5

Last updated