SCOM 2007 Powershell cmdlet: Resolve-Alert
The Resolve-Alert commandlet resolves open alerts. In order to utilize the Resolve-Alert commandlet, you will need to get some unresolved alerts, by using the get-alert commandlet. Here is an example of the Resolve-Alert commandlet in action.
get-alert -criteria 'LastModified >= ''3/13/2008'' AND ResolutionState = ''0'' AND Category = ''Alert'''| resolve-alert -comment "Resolve-Alert Cmdlet Test"
The first part gets or collects the alerts we want to resolve, we want all alerts that are greater or equal to 3/13/2008 and whose resolution state is 0 (new) and whose category is Alert. The results of this commandlet are piped to the resolve-alert commandlet which resolves those alertst. It also adds the following comment to each alert it resolves 'Resolve-Alert Cmdlet Test'.