{"id":910,"date":"2015-03-13T18:37:03","date_gmt":"2015-03-13T18:37:03","guid":{"rendered":"https:\/\/regroove.ca\/stellark\/?p=910"},"modified":"2023-02-24T19:05:14","modified_gmt":"2023-02-24T19:05:14","slug":"getting-current-health-analyzer-alerts-with-powershell","status":"publish","type":"post","link":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/","title":{"rendered":"Getting Current Health Analyzer Alerts with PowerShell"},"content":{"rendered":"\n<p>Recently while working on a SharePoint monitoring PowerShell script we stumbled across the need to output the results of SharePoint\u2019s Health Analyzer using PowerShell. Perhaps not most commonly needed functionality but we think it has some neat applications.<\/p>\n\n\n\n<p>After a little bit of digging online and not finding anything we dove into Central Admin and discovered that in fact the Health Analyzer is simply a modified SharePoint task list in the Central Admin site. The list contains an item for each possible rule that can be triggered. The default view filters to only show items that don\u2019t have a value of \u201c4 \u2013 Success\u201d in the Severity column. The list itself is actually called \u201cReview Problems and Solutions\u201d. All of that led to the following PowerShell script:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[powershell]\n$centralAdminURL = \"&amp;lt;central admin URL complete with port&amp;gt;\"\n$listName = \"Review Problems and Solutions\"\n$spSourceWeb = Get-SPWeb $centralAdminURL\n$spSourceList = $spSourceWeb.Lists[$listName]\n$spSourceItems = $spSourceList.GetItems() | where {$_['Severity'] -ne \"4 - Success\"}\n$spSourceItems | ForEach-Object {\n&amp;nbsp;&amp;nbsp; Write-Host $_['Title']\n&amp;nbsp;&amp;nbsp; }\n[\/powershell]<\/pre>\n\n\n\n<p>This script should be run in the SharePoint Management Shell.<\/p>\n\n\n\n<p>Please note: Scripts in this blog are provided as is with \u201cno-warranties\u201d. They should be run by admins with a knowledge of the systems that will be affected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently while working on a SharePoint monitoring PowerShell script we stumbled across the need to output the results of SharePoint\u2019s Health Analyzer using PowerShell. Perhaps not most commonly needed functionality but we think it has some neat applications. After a little bit of digging online and not finding anything we dove into Central Admin and &hellip; <a href=\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/\"><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[68,80],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Getting Current Health Analyzer Alerts with PowerShell - Stephanie Kahlam<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Current Health Analyzer Alerts with PowerShell - Stephanie Kahlam\" \/>\n<meta property=\"og:description\" content=\"Recently while working on a SharePoint monitoring PowerShell script we stumbled across the need to output the results of SharePoint\u2019s Health Analyzer using PowerShell. Perhaps not most commonly needed functionality but we think it has some neat applications. After a little bit of digging online and not finding anything we dove into Central Admin and &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Stephanie Kahlam\" \/>\n<meta property=\"article:published_time\" content=\"2015-03-13T18:37:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T19:05:14+00:00\" \/>\n<meta name=\"author\" content=\"Stephanie Kahlam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stephanie Kahlam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/\",\"url\":\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/\",\"name\":\"Getting Current Health Analyzer Alerts with PowerShell - Stephanie Kahlam\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/#website\"},\"datePublished\":\"2015-03-13T18:37:03+00:00\",\"dateModified\":\"2023-02-24T19:05:14+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Stellark Home\",\"item\":\"https:\/\/regroove.ca\/stellark\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Current Health Analyzer Alerts with PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#website\",\"url\":\"https:\/\/regroove.ca\/stellark\/\",\"name\":\"Stephanie Kahlam\",\"description\":\"Microsoft 365 and SMB.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/stellark\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149\",\"name\":\"Stephanie Kahlam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g\",\"caption\":\"Stephanie Kahlam\"},\"url\":\"https:\/\/regroove.ca\/stellark\/author\/skahlam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Current Health Analyzer Alerts with PowerShell - Stephanie Kahlam","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Getting Current Health Analyzer Alerts with PowerShell - Stephanie Kahlam","og_description":"Recently while working on a SharePoint monitoring PowerShell script we stumbled across the need to output the results of SharePoint\u2019s Health Analyzer using PowerShell. Perhaps not most commonly needed functionality but we think it has some neat applications. After a little bit of digging online and not finding anything we dove into Central Admin and &hellip;","og_url":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/","og_site_name":"Stephanie Kahlam","article_published_time":"2015-03-13T18:37:03+00:00","article_modified_time":"2023-02-24T19:05:14+00:00","author":"Stephanie Kahlam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stephanie Kahlam","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/","url":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/","name":"Getting Current Health Analyzer Alerts with PowerShell - Stephanie Kahlam","isPartOf":{"@id":"https:\/\/regroove.ca\/stellark\/#website"},"datePublished":"2015-03-13T18:37:03+00:00","dateModified":"2023-02-24T19:05:14+00:00","author":{"@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/stellark\/2015\/03\/13\/getting-current-health-analyzer-alerts-with-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Stellark Home","item":"https:\/\/regroove.ca\/stellark\/"},{"@type":"ListItem","position":2,"name":"Getting Current Health Analyzer Alerts with PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/stellark\/#website","url":"https:\/\/regroove.ca\/stellark\/","name":"Stephanie Kahlam","description":"Microsoft 365 and SMB.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/stellark\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/175e89cb69612178b2ac838c0bab6149","name":"Stephanie Kahlam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/stellark\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/398b95e23dc9eaf37a780b86a239b485?s=96&d=mm&r=g","caption":"Stephanie Kahlam"},"url":"https:\/\/regroove.ca\/stellark\/author\/skahlam\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/910"}],"collection":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/comments?post=910"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/910\/revisions"}],"predecessor-version":[{"id":1445,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/posts\/910\/revisions\/1445"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/media?parent=910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/categories?post=910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/stellark\/wp-json\/wp\/v2\/tags?post=910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}