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.
No Comments