Resolving OpsMgr 2007 Alerts From The Command Shell

 

Here you will find a OpsMgr 2007 Command Shell (PowerShell) script to resolve all “New” alerts.

 

PS1 Script:

 

Get-Alert |

Where {$_.ResolutionState -EQ "New"} |

Resolve-Alert

 

Note: You can also execute the Get-Alert cmdlet from the Command shell by entering Get-Alert and then from the PS Monitoring:\ServerName.DomainName.Com prompt type Ls or Dir to see all of the generated alerts.

 

 

Published Sunday, December 23, 2007 9:04 AM by dhite
Filed under:

Comments

No Comments