Running Tasks with PowerShell and $ID$

Whenever you want to run a Task against an Alert, its so easy to use the $ID$ variable:

Create the powershell script c:\scripts\UpdAlert.ps1 with at least the following lines:


Import-module OperationsManager

GET-SCOMAlert –id “$ID” | SET-SCOMAlert –TicketID ‘100’ –ResolutionState 249

And create the following Task:


Stay on one of your Alerts and Run the tasks

Refresh (F5) before you check the Alert

You could extend the script with other parameters like Logging Computer and User etc.

Check the Powershell help with the command: Get-Help Setp-SCOMAlert – Detailed to see more parameters.

See you a MMS

Smiley Kåre

By | 2013-03-09T11:10:22+00:00 March 9th, 2013|Operations Manager (SCOM)|0 Comments

About the Author:

Kåre Rude Andersen
Microsoft Certified Trainer since 1996, MCSE, TS and ITP in Microsoft Windows, SQL (also Microsoft), Exchange (MS) and Microsoft Operations Manager. Senior Consultant and have recently worked as a consultant at CSC, SAS, ISS, Nokia and Scandlines.

Leave A Comment