I think it will turn up, if one is defined.
Also you could like this:
$mg = Get-SCOMManagementGroup
$know = $mg.knowledge // Get Interface
$kbcrit = new-object
Microsoft.EnterpriseManagement.Configuration.ManagementPackKnowledgeArticleCriteria("KnowledgeReferenceId
= '308c0379-f7f0-0a81-a947-d0dbcf1216a7'") // The GUID of the rule
$articles = $know.GetKnowledgeArticles
$articles is a collection of knowledge articles. For each article you can get
which management pack its defined in, and if the management pack is different
than the management pack the rule is defined in, it's a company knowledge
article.
/Henrik
Venlig hilsen
Henrik Andersen
Værktøjer
Direkte 636 36158
Mobile +45 21 57 90 37
[email protected]
[cid:[email protected]]
JN Data A/S
·
Havsteensvej 4
·
4000 Roskilde
Telefon 63 63 63 63/ Fax 63 63 63 64
www.jndata.dk
[cid:[email protected]]
Fra: [email protected] [mailto:[email protected]] På
vegne af Tyrell, Tommy A.
Sendt: 14. januar 2015 13:37
Til: [email protected]
Emne: [msmom] RE: Monitor/rule Knowledge Article
Thanks for this. Is there a way to get the Company Knowledge?
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Henrik Andersen
Sent: Wednesday, January 14, 2015 7:20 AM
To: [email protected]<mailto:[email protected]>
Subject: [msmom] SV: Monitor/rule Knowledge Article
Not from the alert, but the alert references the rule/monitor that created the
alert and you can get the knowledge from that.
Something like
$Alert = get-scomalert -id 'Guid of alert'
$rule = Get-SCOMmonitor/GetSCOMrule -id $Alert.RuleId
$rule.GetKnowedgeArticle("ENU")
$rule.MamlContent will contain the article
/Henrik
Fra: [email protected]<mailto:[email protected]>
[mailto:[email protected]] På vegne af Tyrell, Tommy A.
Sendt: 14. januar 2015 13:04
Til: [email protected]<mailto:[email protected]>
Emne: [msmom] RE: Monitor/rule Knowledge Article
I have a slightly different request. Is there a PowerShell command to retrieve
the Knowledge from an alert?
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Kevin Holman
Sent: Tuesday, January 13, 2015 2:56 PM
To: [email protected]<mailto:[email protected]>
Subject: [msmom] RE: Monitor/rule Knowledge Article
http://tetris38.blogspot.com/2013/04/opsmgr-2007-r2-powershell-script-to.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__tetris38.blogspot.com_2013_04_opsmgr-2D2007-2Dr2-2Dpowershell-2Dscript-2Dto.html&d=AwMFAw&c=AgWC6Nl7Slwpc9jE7UoQH1_Cvyci3SsTNfdLP4V1RCg&r=vTT6p5E0EGozOJ4ZvSFWYOYVDrl6Fvi8yU-x0FCDHM4&m=bmA9yxkD_IIWCjaiSgvF_NC2EPwHNd_xxaxjUpxNg6E&s=EcwL559zngCUsN2SUYFbqb6lYbELisTmJ6gY-YoJc2A&e=>
Does that work for you?
From: [email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Tyrell, Tommy A.
Sent: Tuesday, January 13, 2015 1:50 PM
To: [email protected]<mailto:[email protected]>
Subject: [msmom] Monitor/rule Knowledge Article
Is there a PowerShell command that will retrieve the Product Knowledge from a
monitor or rule?
Thanks in advance.