{"id":1326,"date":"2018-02-20T09:11:09","date_gmt":"2018-02-20T07:11:09","guid":{"rendered":"https:\/\/msb365.abstergo.ch\/?p=1326"},"modified":"2019-01-31T19:57:48","modified_gmt":"2019-01-31T17:57:48","slug":"problem-exchange-management-shell-incorrectprotocolversion","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=1326","title":{"rendered":"Problem with Exchange management shell: IncorrectProtocolVersion"},"content":{"rendered":"<p>Today I want to write about some small issue one of my customers just had.This customer has installed an exchange server in a new forest.The installation went quite smoothly and after the setup was done, my customer wanted to start the exchange management shell.<\/p>\n<p>When he started the Shell there where a lot of error messages\u2026<\/p>\n<p>\u00a0<\/p>\n<p>Her he was running into a problem:<\/p>\n<pre class=\"\">New-PSSession : [exc001.contoso.com] Processing data from remote server exc001.contoso.com failed with the\r\nfollowing error message: [ClientAccessServer= exc001,BackEndServer= exc001.contoso.com,RequestId=22507b0c-590b-4b79-\r\n9338-9fed93854418,TimeStamp=16.02.2018 09:52:19]\r\n[AuthZRequestId=ad5340a0-1de7-1234-abcd-61b4637f5226][FailureCategory=AuthZ-SetupVersionInformationCorruptException]\r\nUnable to determine the installed file version from the registry key\r\n'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PowerShell\\1\\PowerShellEngine'. For more information, see the\r\nabout_Remote_Troubleshooting Help topic.\r\nAt line:1 char:1\r\n+ New-PSSession -ConnectionURI \"$connectionUri\" -ConfigurationName Micr ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin\r\n gTransportException\r\n + FullyQualifiedErrorId : IncorrectProtocolVersion,PSSessionOpenFailed<\/pre>\n<p>As we can see in the error message, there is a problem with the Powershell version in the registry.<br \/>\nNow we have two ways how to fix this issue:<\/p>\n<p>\u00a0<\/p>\n<h4>Number 1:<\/h4>\n<p>Go to the Technet article from <a href=\"https:\/\/social.technet.microsoft.com\/profile\/prabhat%20nigam\" target=\"_blank\" rel=\"noopener\">Prabhat Nigam<\/a>\u00a0and download his PowerShell Registry Key <a href=\"https:\/\/gallery.technet.microsoft.com\/Exchange-2016-CU1-7c843cb0\" target=\"_blank\" rel=\"noopener\"><strong>HERE<\/strong><\/a>.<\/p>\n<p>\u00a0<\/p>\n<h4>Number 2:<\/h4>\n<p>Try to find out if the right PowerShell versions are installed. This you can do like this:<\/p>\n<p>Go to the server manager and click on \u201cAdd roles and features\u201d:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-1329\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/1-6.png\" alt=\"\" width=\"768\" height=\"783\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/1-6.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/1-6-294x300.png 294w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/1-6-600x612.png 600w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>Choose \u201cRole-based or feature-based installation\u201d and click Next:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1330\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/2-4.png\" alt=\"\" width=\"796\" height=\"568\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/2-4.png 796w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/2-4-300x214.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/2-4-768x548.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/2-4-600x428.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/2-4-780x557.png 780w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>Choose the right server:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1331\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/3-4.png\" alt=\"\" width=\"793\" height=\"567\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/3-4.png 793w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/3-4-300x215.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/3-4-768x549.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/3-4-600x429.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/3-4-780x558.png 780w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/p>\n<p>Go to the server Features:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1332\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/4-9.png\" alt=\"\" width=\"795\" height=\"568\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/4-9.png 795w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/4-9-300x214.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/4-9-768x549.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/4-9-600x429.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/4-9-780x557.png 780w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/p>\n<p>On the server features scroll down to Windows PowerShell (n of 5 installed), choose the \u201cWindows PowerShell 2.0 Engine\u201d and install it. In my print screen I have done it already.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1333\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/5-3.png\" alt=\"\" width=\"796\" height=\"567\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/5-3.png 796w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/5-3-300x214.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/5-3-768x547.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/5-3-600x427.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/5-3-780x556.png 780w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>If that was your issue, your exchange Management shell should be working now fine.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1334\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/6-3.png\" alt=\"\" width=\"985\" height=\"522\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/6-3.png 985w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/6-3-300x159.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/6-3-768x407.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/6-3-600x318.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/02\/6-3-780x413.png 780w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>Photo by\u00a0<a href=\"https:\/\/unsplash.com\/photos\/1NacmxqfPZA?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Joao Tzanno<\/a>\u00a0on\u00a0<a href=\"https:\/\/unsplash.com\/search\/photos\/problem?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText\">Unsplash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I want to write about some small issue one of my customers just had.This customer has installed an exchange server in a new forest.The installation went quite smoothly and after the setup was done, my customer wanted to start the exchange management shell. When he started the Shell there where a lot of error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3122,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[2,3],"tags":[],"class_list":["post-1326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exchange","category-powershell"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/1326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1326"}],"version-history":[{"count":7,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/1326\/revisions"}],"predecessor-version":[{"id":3123,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/1326\/revisions\/3123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/media\/3122"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}