{"id":19675,"date":"2023-08-14T21:24:34","date_gmt":"2023-08-15T01:24:34","guid":{"rendered":"https:\/\/kevinjustin.com\/blog\/?p=19675"},"modified":"2023-08-15T06:17:51","modified_gmt":"2023-08-15T10:17:51","slug":"top-process-powershell-script","status":"publish","type":"post","link":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/","title":{"rendered":"Top Process PowerShell script"},"content":{"rendered":"<figure id=\"attachment_19676\" aria-describedby=\"caption-attachment-19676\" style=\"width: 660px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-19676 size-full\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png\" alt=\"Task Manager output for 'Top Process PowerShell script management pack'\" width=\"660\" height=\"600\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png 660w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager-300x273.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-19676\" class=\"wp-caption-text\">Task Manager output for &#8216;Top Process PowerShell script management pack&#8217;<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Ever wish you had task manager output when you had a monitor go unhealthy?\u00a0 Following Kevin Holman&#8217;s lead to &#8216;<a href=\"https:\/\/kevinholman.com\/2021\/08\/22\/monitoring-processes-in-scom\/\" target=\"_blank\" rel=\"noopener\">Monitor Processes<\/a>&#8216;, the idea landed to build out the &#8216;Top Process PowerShell script&#8217;.\u00a0 This morphed into a management pack with Knowledge entries to better explain what is being done.\u00a0 Integrating Top Process into Health Explorer output as a recovery task helped provide another step before alerting.\u00a0 \u00a0 The idea started from the need to prove which Security tool(s) were causing the over-utilized compute spikes, causing non-responsive server(s).\u00a0 Thinking back to my UNIX days, we simply used <a href=\"https:\/\/www.tecmint.com\/12-top-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">top<\/a>, <a href=\"https:\/\/www.redhat.com\/sysadmin\/linux-commands-vmstat\" target=\"_blank\" rel=\"noopener\">vmstat<\/a>, iostat, and other commands to identify problematic processes.\u00a0 Integrating PowerShell scripts into SCOM is part of the fun, then linking the obfuscated Security processes for the final output.\u00a0 From there, extrapolate into Azure Functions or Azure Logic apps, for additional functionality for cloud native monitoring.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: Segoe UI;\"><span style=\"font-size: large;\"><strong>Quick Download: <\/strong><\/span><\/span><a href=\"https:\/\/github.com\/theKevinJustin\/TopProcess\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/theKevinJustin\/TopProcess<\/a><\/p>\n<p>Tier1 separated monitoring (no AD) <a href=\"https:\/\/github.com\/theKevinJustin\/TopProcessTier1\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/theKevinJustin\/TopProcessTier1<\/a><\/p>\n<h2><\/h2>\n<h2>Building out the &#8216;Top Process PowerShell script&#8217;<\/h2>\n<p>Kevin Holman built a &#8216; Monitor.Performance.ConsecSamples.ThenScript.TwoState.mpx fragment, beginning the logical journey.\u00a0 \u00a0His fragment helped me start with a working model, taking processes and cores into consideration for true CPU usage on multi-core servers.<\/p>\n<figure id=\"attachment_19683\" aria-describedby=\"caption-attachment-19683\" style=\"width: 2101px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19683\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment.jpg\" alt=\"Kevin Holman Monitor performance then script fragment for PowerShell get-counter syntax\" width=\"2101\" height=\"663\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment.jpg 2101w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment-1536x485.jpg 1536w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment-2048x646.jpg 2048w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment-1200x379.jpg 1200w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment-300x95.jpg 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment-768x242.jpg 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/KevinHolman-MonitorPerformanceThenScriptFragment-1024x323.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-19683\" class=\"wp-caption-text\">Kevin Holman Monitor performance then script fragment for PowerShell get-counter syntax<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>We need to see the processes, and their corresponding value, then build an output table (custom object).\u00a0 After gathering the processes, feed the TopProcesses array, lastly sorting the array for CPUValue<\/p>\n<figure id=\"attachment_19686\" aria-describedby=\"caption-attachment-19686\" style=\"width: 2311px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19686\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage.jpg\" alt=\"Top Process memory usage snippet\" width=\"2311\" height=\"1042\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage.jpg 2311w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage-1536x693.jpg 1536w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage-2048x923.jpg 2048w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage-1200x541.jpg 1200w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage-300x135.jpg 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage-768x346.jpg 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TopProcessMemoryUsage-1024x462.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-19686\" class=\"wp-caption-text\">Top Process memory usage snippet<\/figcaption><\/figure>\n<p>Next, we&#8217;ll want to see what applications\/tools might be involved, including Active Client, IIS, monitoring, and EndPoint Management tools (keep things honest!).<\/p>\n<figure id=\"attachment_19685\" aria-describedby=\"caption-attachment-19685\" style=\"width: 1045px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/SecurityProcesses.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19685\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/SecurityProcesses.jpg\" alt=\"Added the Security Processes into the mix\" width=\"1045\" height=\"748\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/SecurityProcesses.jpg 1045w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/SecurityProcesses-300x215.jpg 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/SecurityProcesses-768x550.jpg 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/SecurityProcesses-1024x733.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-19685\" class=\"wp-caption-text\">Added the Security Processes into the mix<\/figcaption><\/figure>\n<p>Then we build an output of the data so we can take the datasource (DS) or WriteAction (WA) into a scripted monitor\/rule, or recovery tasks linked to various monitors.\u00a0 Even built a forked version in case of SAW\/Red Forest, separating Tier0 monitoring from Tier1 (snippet below is NOT that pack)<\/p>\n<figure id=\"attachment_19687\" aria-describedby=\"caption-attachment-19687\" style=\"width: 2560px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-19687\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-scaled.jpg\" alt=\"snippet of manual tasks and recoveries that link to multiple monitors\" width=\"2560\" height=\"459\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-scaled.jpg 2560w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-1536x275.jpg 1536w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-2048x367.jpg 2048w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-1200x215.jpg 1200w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-300x54.jpg 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-768x138.jpg 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TasksAndRecoveryies-1024x184.jpg 1024w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption id=\"caption-attachment-19687\" class=\"wp-caption-text\">snippet of manual tasks and recoveries that link to multiple monitors<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<h3>Useful links<\/h3>\n<p>Kevin Holman MP fragments <a href=\"https:\/\/kevinholman.com\/2019\/01\/17\/mp-authoring-with-fragments-introducing-combo-fragments\/\" target=\"_blank\" rel=\"noopener\">blog<\/a> and GitHub <a href=\"https:\/\/github.com\/thekevinholman\/FragmentLibrary\" target=\"_blank\" rel=\"noopener\">Fragment library\/repository<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Ever wish you had task manager output when you had a monitor go unhealthy?\u00a0 Following Kevin Holman&#8217;s lead to &#8216;Monitor Processes&#8216;, the idea landed to build out the &#8216;Top Process PowerShell script&#8217;.\u00a0 This morphed into a management pack with Knowledge entries to better explain what is being done.\u00a0 Integrating Top Process into Health Explorer &hellip; <a href=\"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Top Process PowerShell script&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5,7,545,530],"tags":[705,223,706,342,505,703,704,702,461,520],"class_list":["post-19675","post","type-post","status-publish","format-standard","hentry","category-administration","category-best-practice","category-mp-management-pack","category-powershell","category-scom","tag-cpu","tag-management-pack","tag-offending-process","tag-scom","tag-scom2019","tag-task-manager","tag-top","tag-top-process","tag-unix","tag-vmstat"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Top Process PowerShell script - Kevin Justin&#039;s Blog<\/title>\n<meta name=\"description\" content=\"Use the &#039;Top Process PowerShell script&#039; SCOM management pack to identify culprit applications and processes causing many SCOM alerts.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Top Process PowerShell script - Kevin Justin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Use the &#039;Top Process PowerShell script&#039; SCOM management pack to identify culprit applications and processes causing many SCOM alerts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/\" \/>\n<meta property=\"og:site_name\" content=\"Kevin Justin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-15T01:24:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-15T10:17:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png\" \/>\n<meta name=\"author\" content=\"WordPress Administrator\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WordPress Administrator\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/\"},\"author\":{\"name\":\"WordPress Administrator\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"headline\":\"Top Process PowerShell script\",\"datePublished\":\"2023-08-15T01:24:34+00:00\",\"dateModified\":\"2023-08-15T10:17:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/\"},\"wordCount\":411,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/TaskManager.png\",\"keywords\":[\"CPU\",\"management pack\",\"offending process\",\"SCOM\",\"scom2019\",\"task manager\",\"top\",\"top process\",\"unix\",\"vmstat\"],\"articleSection\":[\"Administration\",\"Best Practice\",\"MP Management Pack\",\"PowerShell\",\"SCOM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/\",\"name\":\"Top Process PowerShell script - Kevin Justin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/TaskManager.png\",\"datePublished\":\"2023-08-15T01:24:34+00:00\",\"dateModified\":\"2023-08-15T10:17:51+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\"},\"description\":\"Use the 'Top Process PowerShell script' SCOM management pack to identify culprit applications and processes causing many SCOM alerts.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/TaskManager.png\",\"contentUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/TaskManager.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2023\\\/08\\\/14\\\/top-process-powershell-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Top Process PowerShell script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\",\"name\":\"Kevin Justin&#039;s Blog\",\"description\":\"Operational monitoring tools including System Center, Azure Monitor\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/3d7a90f4430bef43134eaa0a7e2cd508\",\"name\":\"WordPress Administrator\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g\",\"caption\":\"WordPress Administrator\"},\"sameAs\":[\"https:\\\/\\\/kevinjustin.com\"],\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/author\\\/wordpress_admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Top Process PowerShell script - Kevin Justin&#039;s Blog","description":"Use the 'Top Process PowerShell script' SCOM management pack to identify culprit applications and processes causing many SCOM alerts.","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:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/","og_locale":"en_US","og_type":"article","og_title":"Top Process PowerShell script - Kevin Justin&#039;s Blog","og_description":"Use the 'Top Process PowerShell script' SCOM management pack to identify culprit applications and processes causing many SCOM alerts.","og_url":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/","og_site_name":"Kevin Justin&#039;s Blog","article_published_time":"2023-08-15T01:24:34+00:00","article_modified_time":"2023-08-15T10:17:51+00:00","og_image":[{"url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png","type":"","width":"","height":""}],"author":"WordPress Administrator","twitter_card":"summary_large_image","twitter_misc":{"Written by":"WordPress Administrator","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#article","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/"},"author":{"name":"WordPress Administrator","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"headline":"Top Process PowerShell script","datePublished":"2023-08-15T01:24:34+00:00","dateModified":"2023-08-15T10:17:51+00:00","mainEntityOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/"},"wordCount":411,"commentCount":0,"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png","keywords":["CPU","management pack","offending process","SCOM","scom2019","task manager","top","top process","unix","vmstat"],"articleSection":["Administration","Best Practice","MP Management Pack","PowerShell","SCOM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/","url":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/","name":"Top Process PowerShell script - Kevin Justin&#039;s Blog","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#primaryimage"},"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png","datePublished":"2023-08-15T01:24:34+00:00","dateModified":"2023-08-15T10:17:51+00:00","author":{"@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508"},"description":"Use the 'Top Process PowerShell script' SCOM management pack to identify culprit applications and processes causing many SCOM alerts.","breadcrumb":{"@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#primaryimage","url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png","contentUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2023\/08\/TaskManager.png"},{"@type":"BreadcrumbList","@id":"https:\/\/kevinjustin.com\/blog\/2023\/08\/14\/top-process-powershell-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kevinjustin.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Top Process PowerShell script"}]},{"@type":"WebSite","@id":"https:\/\/kevinjustin.com\/blog\/#website","url":"https:\/\/kevinjustin.com\/blog\/","name":"Kevin Justin&#039;s Blog","description":"Operational monitoring tools including System Center, Azure Monitor","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kevinjustin.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/3d7a90f4430bef43134eaa0a7e2cd508","name":"WordPress Administrator","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fca865cc5df90a25ae9533b1d9dea567a78c7469dc3202a376c8d117a0eaea11?s=96&d=mm&r=g","caption":"WordPress Administrator"},"sameAs":["https:\/\/kevinjustin.com"],"url":"https:\/\/kevinjustin.com\/blog\/author\/wordpress_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/19675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/comments?post=19675"}],"version-history":[{"count":13,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/19675\/revisions"}],"predecessor-version":[{"id":19698,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/19675\/revisions\/19698"}],"wp:attachment":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/media?parent=19675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/categories?post=19675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/tags?post=19675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}