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  
Operations Manager 2007 Cmdlet Get-PendingAction mini-reports


Bookmark and Share

By: Scott Moss
Posted On: 7/15/2008

To get a list of server names and what they are pending about i.e. AgentPendingActionType (this can be long depending on how many agent pending actions are in your environement)


get-agentpendingaction | sort-object AgentName | Select-object AgentName, AgentPendingActionType | format-table -auto

  
AgentName AgentPendingActionType

--------- ----------------------

AD01.My.Company.Com UpdateFailed

AD02.My.Company.Com RepairFailed

EXCH01.My.Company.Com PushInstallFailed

SMS01.My.Company.Com UpdateFailed




To get a list of servers whose status in AgentPendingActionType is ‘UpdateFailed’


get-agentpendingaction | where-object {$_.AgentPendingActionType -eq "UpdateFailed"} | sort-object AgentName | Select-object AgentName, AgentPendingActionType | format-table -auto

  
AgentName AgentPendingActionType

--------- ----------------------

AD01.My.Company.Com UpdateFailed

AD02.My.Company.Com UpdateFailed

EXCH01.My.Company.Com UpdateFailed

EXCH02.My.Company.Com UpdateFailed


To get a mini-report with the count and type of the agentpendingactiontype


get-agentpendingaction | group-object AgentPendingActionType | Sort -desc Count | Select-object Count, Name | Format-table -auto

  
Count Name

----- ----

90 UpdateFailed

1 PushInstallFailed

1 RepairFailed

  myITforum.com ©2010 | Legal | Privacy