Command Shell Reference
SQL Queries
Welcome to TechNet Blogs Sign in | Join | Help
In which Management Pack is this Group Stored?

Ever wonder which Management Pack you stored a particular group in?  Here’s the answer.

ForEach ($Group in get-MonitoringObjectGroup) {If ($Group.DisplayName -eq "<group_name>") {get-MonitoringClass | where {$_.Id -eq $Group.Id.ToString()} | Foreach-Object {$_.getManagementPack()} | Select @{Name="Group Name";Expression={$Group.DisplayName}},@{Name="MP Name";Expression={$_.Name}},@{Name="MP DisplayName";Expression={$_.DisplayName}} | fl}}

Command Shell Main Menu

Posted: Tuesday, June 30, 2009 8:25 PM by jtalmquist

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Page view tracker