The PLA subsystem that you have been working with in this chapter has an additional kind of report that the PLA and PowerShell can generate, a System Diagnostic report. This report is simple to create and makes use of some of the approaches used in this chapter.
Creating a system diagnostics report
Getting ready
You run this recipe on server SRV1.
How to do it...
- Start the data collector on the local system:
$PerfReportName="System\System Diagnostics" $DataSet = New-Object -ComObject Pla.DataCollectorSet $DataSet.Query($PerfReportName,$null...