{"id":5375,"date":"2020-04-15T21:56:03","date_gmt":"2020-04-15T20:56:03","guid":{"rendered":"https:\/\/www.n-able.com\/?p=5375"},"modified":"2021-06-02T17:17:57","modified_gmt":"2021-06-02T16:17:57","slug":"automating-your-upgrade-powershell-51","status":"publish","type":"post","link":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51","title":{"rendered":"Automating Your Upgrade to PowerShell 5.1"},"content":{"rendered":"<p>With PowerShell defaulting to version 2 or 3 on Windows 7, 8, and 8.1, it\u2019s becoming necessary to upgrade PowerShell to version 5.1 to take advantage of its latest features. However, the number of Microsoft updates a device needs to bring it up-to-date can make the process complex.<\/p>\n<p>Fortunately, Christian Oaksford from Mytech Partners created an automation policy to handle this process. This is also a recent submittal from the 2019 North American Hackathon.<\/p>\n<p>The policy is available at the following link:\u00a0<a class=\"ext\" href=\"https:\/\/success.solarwindsmsp.com\/kb\/solarwinds_n-central\/PowerShell-Upgrade-2-0-to-5-1\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/success.solarwindsmsp.com\/kb\/solarwinds_n-central\/PowerShell-Upgrade-2-0-to-5-1<\/a><\/p>\n<p>The policy makes the upgrade process very simple. With it you can deploy a custom service which will show a pass status if PowerShell is already up-to-date on the device. If it\u2019s possible to upgrade PowerShell via the attached script, it will show a warning state\u2014and if you must do the upgrade manually for any reason, it will show a failed state.<\/p>\n<p>You can do the custom service with self-healing, which you can configure by opening the service and going to the self-healing tab.<\/p>\n<p>The upgrade script, when run either manually or via a self-healing, will check for pre-requisites and download and upgrade .net if it\u2019s required. It will then install the proper Microsoft update to do the PowerShell upgrade.<\/p>\n<p>The upgrade script may require multiple executions due to the requirement for reboot with certain Microsoft updates. The custom service will show a progression through the various service items, what is needed and what the next step is.<\/p>\n<p><strong>If you\u2019ve created an automation policy and would like to share it with the community, please feel free to email me at\u00a0<a href=\"mailto:marcandre.tanguay@solarwinds.com\">marcandre.tanguay@solarwinds.com<\/a>\u00a0<\/strong><\/p>\n<p><strong>As always, don\u2019t forget to look in the Automation Cookbook at\u00a0<a href=\"https:\/\/www.solarwindsmsp.com\/cookbook\" target=\"_blank\" rel=\"noopener\">www.solarwindsmsp.com\/cookbook<\/a>\u00a0if you\u2019re interested in other automation policies, script checks, and custom services.<\/strong><\/p>\n<p><em>Marc-Andre Tanguay is Head Automation Nerd. You can follow him on Twitter at\u00a0<a class=\"ext\" href=\"https:\/\/twitter.com\/automation_nerd\" target=\"_blank\" rel=\"noopener noreferrer\">@automation_nerd<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-5375","post","type-post","status-publish","format-standard","hentry","topic-automation","topic-head-nerds"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Automating Your Upgrade to PowerShell 5.1 - N-able<\/title>\n<meta name=\"description\" content=\"Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automating Your Upgrade to PowerShell 5.1 - N-able\" \/>\n<meta property=\"og:description\" content=\"Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\" \/>\n<meta property=\"og:site_name\" content=\"N-able\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/NableMSP\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-15T20:56:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-02T16:17:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/03\/share-image.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Marc-Andre Tanguay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Nable\" \/>\n<meta name=\"twitter:site\" content=\"@Nable\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marc-Andre Tanguay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\"},\"author\":{\"name\":\"Marc-Andre Tanguay\",\"@id\":\"https:\/\/www.n-able.com\/de#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5\"},\"headline\":\"Automating Your Upgrade to PowerShell 5.1\",\"datePublished\":\"2020-04-15T21:56:03+01:00\",\"dateModified\":\"2021-06-02T16:17:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\"},\"wordCount\":324,\"publisher\":{\"@id\":\"https:\/\/www.n-able.com\/de#organization\"},\"articleSection\":[\"Automation\",\"Head Nerds\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\",\"url\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\",\"name\":\"Automating Your Upgrade to PowerShell 5.1 - N-able\",\"isPartOf\":{\"@id\":\"https:\/\/www.n-able.com\/de#website\"},\"datePublished\":\"2020-04-15T21:56:03+01:00\",\"dateModified\":\"2021-06-02T16:17:57+00:00\",\"description\":\"Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Automation\",\"item\":\"https:\/\/www.n-able.com\/de\/blog\/category\/automation\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automating Your Upgrade to PowerShell 5.1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.n-able.com\/de#website\",\"url\":\"https:\/\/www.n-able.com\/de\",\"name\":\"N-able\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.n-able.com\/de#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.n-able.com\/de?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.n-able.com\/de#organization\",\"name\":\"N-able\",\"url\":\"https:\/\/www.n-able.com\/de\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.n-able.com\/de#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg\",\"contentUrl\":\"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"N-able\"},\"image\":{\"@id\":\"https:\/\/www.n-able.com\/de#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/NableMSP\",\"https:\/\/x.com\/Nable\",\"https:\/\/www.linkedin.com\/company\/n-able\",\"https:\/\/www.youtube.com\/channel\/UClnp77HHg4aME-S-3fWQhFw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.n-able.com\/de#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5\",\"name\":\"Marc-Andre Tanguay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g\",\"caption\":\"Marc-Andre Tanguay\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Automating Your Upgrade to PowerShell 5.1 - N-able","description":"Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.","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:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51","og_locale":"de_DE","og_type":"article","og_title":"Automating Your Upgrade to PowerShell 5.1 - N-able","og_description":"Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.","og_url":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51","og_site_name":"N-able","article_publisher":"https:\/\/www.facebook.com\/NableMSP","article_published_time":"2020-04-15T20:56:03+00:00","article_modified_time":"2021-06-02T16:17:57+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/03\/share-image.jpg","type":"image\/jpeg"}],"author":"Marc-Andre Tanguay","twitter_card":"summary_large_image","twitter_creator":"@Nable","twitter_site":"@Nable","twitter_misc":{"Verfasst von":"Marc-Andre Tanguay","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51#article","isPartOf":{"@id":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51"},"author":{"name":"Marc-Andre Tanguay","@id":"https:\/\/www.n-able.com\/de#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5"},"headline":"Automating Your Upgrade to PowerShell 5.1","datePublished":"2020-04-15T21:56:03+01:00","dateModified":"2021-06-02T16:17:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51"},"wordCount":324,"publisher":{"@id":"https:\/\/www.n-able.com\/de#organization"},"articleSection":["Automation","Head Nerds"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51","url":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51","name":"Automating Your Upgrade to PowerShell 5.1 - N-able","isPartOf":{"@id":"https:\/\/www.n-able.com\/de#website"},"datePublished":"2020-04-15T21:56:03+01:00","dateModified":"2021-06-02T16:17:57+00:00","description":"Upgrading to PowerShell 5.1 is something MSPs will increasingly need to do. Marc-Andre Tanguay unveils an automation script to help you do it.","breadcrumb":{"@id":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.n-able.com\/de\/blog\/automating-your-upgrade-powershell-51#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Automation","item":"https:\/\/www.n-able.com\/de\/blog\/category\/automation"},{"@type":"ListItem","position":2,"name":"Automating Your Upgrade to PowerShell 5.1"}]},{"@type":"WebSite","@id":"https:\/\/www.n-able.com\/de#website","url":"https:\/\/www.n-able.com\/de","name":"N-able","description":"","publisher":{"@id":"https:\/\/www.n-able.com\/de#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.n-able.com\/de?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.n-able.com\/de#organization","name":"N-able","url":"https:\/\/www.n-able.com\/de","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.n-able.com\/de#\/schema\/logo\/image\/","url":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg","contentUrl":"https:\/\/www.n-able.com\/wp-content\/uploads\/2021\/02\/logo-n-able-vertical-dark.svg","width":"1024","height":"1024","caption":"N-able"},"image":{"@id":"https:\/\/www.n-able.com\/de#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/NableMSP","https:\/\/x.com\/Nable","https:\/\/www.linkedin.com\/company\/n-able","https:\/\/www.youtube.com\/channel\/UClnp77HHg4aME-S-3fWQhFw"]},{"@type":"Person","@id":"https:\/\/www.n-able.com\/de#\/schema\/person\/e9aad1eacfec78bcd30647fc3df38ea5","name":"Marc-Andre Tanguay","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c30ca969acb05f4b38743793d0f087676b464e787ea6d4c9f359509b272cdb1d?s=96&d=mm&r=g","caption":"Marc-Andre Tanguay"}}]}},"_links":{"self":[{"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/posts\/5375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/comments?post=5375"}],"version-history":[{"count":0,"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/posts\/5375\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.n-able.com\/de\/wp-json\/wp\/v2\/media?parent=5375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}