The Windows PowerShell script monitor allows you to run custom PowerShell scripts in SAM to monitor Windows-based computers. Before coding and testing your script, review the PowerShell information and components and best practices for SAM.
Click Settings > All Settings > SAM Settings and click Manage Templates.
The Manage Application Monitor Templates page opens. All available out-of-the-box and custom templates display.
Search to locate, select, and edit an existing template or click Create New Template.
Search for Powershell. When displayed, select the Windows PowerShell Monitor and click add.
Test the script by selecting settings for the output, specified node, and specified credentials. Click Get Script Output.
Output results display using the script code with success or failure and any additional notes.
Click Get Script Output to generate the output and click Save.
The metrics save to outputs to configure as part of the component monitor. These outputs display at polling intervals for the template.
When tested, output generates into customizable sections. Each output section is named by the Unique ID with a Display Name you can edit.
For each output, you can optionally: