Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : Windows PowerShell print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
Resolving OpsMgr 2007 Alerts From The Command Shell


Bookmark and Share

By: Don Hite
Posted On: 2/14/2008

This article was Previously posted on Don Hite's Blog

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.



  myITforum.com ©2010 | Legal | Privacy