{"id":2015,"date":"2017-06-22T15:15:59","date_gmt":"2017-06-22T21:15:59","guid":{"rendered":"https:\/\/kevinjustin.com\/blog\/?p=2015"},"modified":"2019-12-20T11:29:26","modified_gmt":"2019-12-20T15:29:26","slug":"powershell-monitor-fragment-with-run-as","status":"publish","type":"post","link":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/","title":{"rendered":"PowerShell Monitor Fragment with Run As"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2025\" src=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-300x300.jpg 300w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-150x150.jpg 150w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-768x768.jpg 768w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-1024x1024.jpg 1024w, https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1.jpg 1200w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/p>\n<p>Stop!<\/p>\n<p>&nbsp;<\/p>\n<p>Ever need to run a PowerShell command (or script)\u00a0as a specific ID?<\/p>\n<p>Maybe you need to know when the command fails to catch degraded application health?<\/p>\n<p>&nbsp;<\/p>\n<p>Let&#8217;s work into the scenario with a MP Fragment<\/p>\n<p>&nbsp;<\/p>\n<p>Download the latest fragments <a href=\"https:\/\/gallery.technet.microsoft.com\/Uncommon-Custom-MP-c5a12a86\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color: #337ab7;\">here<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stop! &nbsp; Ever need to run a PowerShell command (or script)\u00a0as a specific ID? Maybe you need to know when the command fails to catch degraded application health? &nbsp; Let&#8217;s work into the scenario with a MP Fragment &nbsp; Download the latest fragments here<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7],"tags":[33,52,115,169,207,209,223,243,255,332,447,459,460],"class_list":["post-2015","post","type-post","status-publish","format-standard","hentry","category-administration","category-mp-management-pack","tag-agents","tag-authoring","tag-database","tag-fragment","tag-load-test","tag-load-testing","tag-management-pack","tag-mp","tag-mpauthoring","tag-reporting","tag-tools","tag-ui","tag-ui-console"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerShell Monitor Fragment with Run As - Kevin Justin&#039;s Blog<\/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:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell Monitor Fragment with Run As - Kevin Justin&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"Stop! &nbsp; Ever need to run a PowerShell command (or script)\u00a0as a specific ID? Maybe you need to know when the command fails to catch degraded application health? &nbsp; Let&#8217;s work into the scenario with a MP Fragment &nbsp; Download the latest fragments here\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/\" \/>\n<meta property=\"og:site_name\" content=\"Kevin Justin&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-22T21:15:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-12-20T15:29:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-300x300.jpg\" \/>\n<meta name=\"author\" content=\"Kevin Justin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kevin Justin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/\"},\"author\":{\"name\":\"Kevin Justin\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/213cdc5c6c3f2a1d9e8417c07440972d\"},\"headline\":\"PowerShell Monitor Fragment with Run As\",\"datePublished\":\"2017-06-22T21:15:59+00:00\",\"dateModified\":\"2019-12-20T15:29:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/\"},\"wordCount\":52,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/stopsign-1-300x300.jpg\",\"keywords\":[\"agents\",\"Authoring\",\"database\",\"fragment\",\"load test\",\"load testing\",\"management pack\",\"MP\",\"MPAuthoring\",\"Reporting\",\"Tools\",\"UI\",\"UI Console\"],\"articleSection\":[\"Administration\",\"MP Management Pack\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/\",\"name\":\"PowerShell Monitor Fragment with Run As - Kevin Justin&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/stopsign-1-300x300.jpg\",\"datePublished\":\"2017-06-22T21:15:59+00:00\",\"dateModified\":\"2019-12-20T15:29:26+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/#\\\/schema\\\/person\\\/213cdc5c6c3f2a1d9e8417c07440972d\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/stopsign-1.jpg\",\"contentUrl\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/06\\\/stopsign-1.jpg\",\"width\":1200,\"height\":1200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/2017\\\/06\\\/22\\\/powershell-monitor-fragment-with-run-as\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell Monitor Fragment with Run As\"}]},{\"@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\\\/213cdc5c6c3f2a1d9e8417c07440972d\",\"name\":\"Kevin Justin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4c2a0d1189dd1ad7f305cf08aa9c5e2d4cc8fc26fde7ca573d3fd7e75520334e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4c2a0d1189dd1ad7f305cf08aa9c5e2d4cc8fc26fde7ca573d3fd7e75520334e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4c2a0d1189dd1ad7f305cf08aa9c5e2d4cc8fc26fde7ca573d3fd7e75520334e?s=96&d=mm&r=g\",\"caption\":\"Kevin Justin\"},\"url\":\"https:\\\/\\\/kevinjustin.com\\\/blog\\\/author\\\/kejustin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell Monitor Fragment with Run As - Kevin Justin&#039;s Blog","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\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/","og_locale":"en_US","og_type":"article","og_title":"PowerShell Monitor Fragment with Run As - Kevin Justin&#039;s Blog","og_description":"Stop! &nbsp; Ever need to run a PowerShell command (or script)\u00a0as a specific ID? Maybe you need to know when the command fails to catch degraded application health? &nbsp; Let&#8217;s work into the scenario with a MP Fragment &nbsp; Download the latest fragments here","og_url":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/","og_site_name":"Kevin Justin&#039;s Blog","article_published_time":"2017-06-22T21:15:59+00:00","article_modified_time":"2019-12-20T15:29:26+00:00","og_image":[{"url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-300x300.jpg","type":"","width":"","height":""}],"author":"Kevin Justin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kevin Justin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#article","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/"},"author":{"name":"Kevin Justin","@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/213cdc5c6c3f2a1d9e8417c07440972d"},"headline":"PowerShell Monitor Fragment with Run As","datePublished":"2017-06-22T21:15:59+00:00","dateModified":"2019-12-20T15:29:26+00:00","mainEntityOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/"},"wordCount":52,"commentCount":0,"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-300x300.jpg","keywords":["agents","Authoring","database","fragment","load test","load testing","management pack","MP","MPAuthoring","Reporting","Tools","UI","UI Console"],"articleSection":["Administration","MP Management Pack"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/","url":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/","name":"PowerShell Monitor Fragment with Run As - Kevin Justin&#039;s Blog","isPartOf":{"@id":"https:\/\/kevinjustin.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#primaryimage"},"image":{"@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#primaryimage"},"thumbnailUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1-300x300.jpg","datePublished":"2017-06-22T21:15:59+00:00","dateModified":"2019-12-20T15:29:26+00:00","author":{"@id":"https:\/\/kevinjustin.com\/blog\/#\/schema\/person\/213cdc5c6c3f2a1d9e8417c07440972d"},"breadcrumb":{"@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#primaryimage","url":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1.jpg","contentUrl":"https:\/\/kevinjustin.com\/blog\/wp-content\/uploads\/2017\/06\/stopsign-1.jpg","width":1200,"height":1200},{"@type":"BreadcrumbList","@id":"https:\/\/kevinjustin.com\/blog\/2017\/06\/22\/powershell-monitor-fragment-with-run-as\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kevinjustin.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PowerShell Monitor Fragment with Run As"}]},{"@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\/213cdc5c6c3f2a1d9e8417c07440972d","name":"Kevin Justin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4c2a0d1189dd1ad7f305cf08aa9c5e2d4cc8fc26fde7ca573d3fd7e75520334e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4c2a0d1189dd1ad7f305cf08aa9c5e2d4cc8fc26fde7ca573d3fd7e75520334e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c2a0d1189dd1ad7f305cf08aa9c5e2d4cc8fc26fde7ca573d3fd7e75520334e?s=96&d=mm&r=g","caption":"Kevin Justin"},"url":"https:\/\/kevinjustin.com\/blog\/author\/kejustin\/"}]}},"_links":{"self":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/2015","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/comments?post=2015"}],"version-history":[{"count":1,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions"}],"predecessor-version":[{"id":6570,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions\/6570"}],"wp:attachment":[{"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/media?parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/categories?post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kevinjustin.com\/blog\/wp-json\/wp\/v2\/tags?post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}