{"id":3160,"date":"2019-02-26T09:34:19","date_gmt":"2019-02-26T07:34:19","guid":{"rendered":"https:\/\/www.msb365.blog\/?p=3160"},"modified":"2019-02-26T09:36:04","modified_gmt":"2019-02-26T07:36:04","slug":"modify-mailbox-type-using-exchange-attribute-editor","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=3160","title":{"rendered":"Modify Mailbox type using Exchange Attribute Editor"},"content":{"rendered":"<p>A few days ago, I had to configure a few mailboxes for enabling message copy while sending. However, this is not the point at this moment. When I ran the PowerShell command, I got the following output:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-3201\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-1024x55.png\" alt=\"\" width=\"1024\" height=\"55\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-1024x55.png 1024w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-300x16.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-768x41.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-600x32.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-1600x86.png 1600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1-905x48.png 905w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/1.png 1906w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The error says that this command only works for user or shared mailboxes. In the first moment, this was bit confusing for me. I was sure, that this particular mailbox was a normal user mailbox. However, by checking the recipient type it showed me that I was right with my guess. It was a user mailbox:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3203\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/2.png\" alt=\"\" width=\"617\" height=\"102\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/2.png 617w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/2-300x50.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/2-600x99.png 600w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The next step was to check the recipient type details, which actually where more important for the issue. The output of this request showed me that this mailbox was still a linked mailbox.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-3204\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/3.png\" alt=\"\" width=\"676\" height=\"108\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/3.png 676w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/3-300x48.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/3-600x96.png 600w\" sizes=\"(max-width: 676px) 100vw, 676px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The constellation in this case was, that we had a coexistence between two environments that we were using to migrate from one environment to a new one. The mailboxes and their content were migrated to the new site, but the Active Directory user accounts where still on the old site. In this case the mailbox was in a state that everything was working fine, but I was not able to enable message copy by sending.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Changing the mailbox type<\/h2>\n<p>&nbsp;<\/p>\n<p>In a best case scenario, we can migrate the Active Directory user to the new site and the linked mailbox would be changed into a user mailbox. However, in my case this was not possible. This is why I went for the hard way.<\/p>\n<p>We go to the <strong>Active Directory Users and Computers<\/strong> and navigate to the <strong>Attribute Editor<\/strong>. Here, we need to make two changes:<\/p>\n<p>First, we go to the field <strong>msExchRecipientType<\/strong> and change the value to <strong>1<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3205\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/4.png\" alt=\"\" width=\"665\" height=\"633\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/4.png 665w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/4-300x286.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/4-600x571.png 600w\" sizes=\"(max-width: 665px) 100vw, 665px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The second thing we need to edit is the <strong>msExchMasterAccountSid.<\/strong> This one has to be empty to prevent from running into unexpected troubles.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3206\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/5.png\" alt=\"\" width=\"649\" height=\"804\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/5.png 649w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/5-242x300.png 242w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/5-600x743.png 600w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>After changing the entries in the Active Directory, I was finally able to run my PowerShell command for enabling message copy while sending.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3207\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/6.png\" alt=\"\" width=\"796\" height=\"55\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/6.png 796w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/6-300x21.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/6-768x53.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/6-600x41.png 600w\" sizes=\"(max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>By the way: This \u201chack\u201d works for other mailbox types as well. In the table below, we can see the different values for mailbox types:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3208\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/0.png\" alt=\"\" width=\"871\" height=\"233\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/0.png 871w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/0-300x80.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/0-768x205.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2019\/02\/0-600x161.png 600w\" sizes=\"(max-width: 871px) 100vw, 871px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>Important<\/strong><\/span>: Please note that this way should only be followed when there are no other options left. I deeply recommend you to follow the Microsoft best practices to handle linked mailboxes and, if possible, to change the mailbox type the official way. However, this solution is hard-coded and kind of a last resort.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Photo by&nbsp;<a href=\"https:\/\/unsplash.com\/photos\/Zvha13RXnZY?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">Dose Juice<\/a>&nbsp;on&nbsp;<a href=\"https:\/\/unsplash.com\/search\/photos\/apple-pear?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText\">Unsplash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago, I had to configure a few mailboxes for enabling message copy while sending. However, this is not the point at this moment. When I ran the PowerShell command, I got the following output: &nbsp; The error says that this command only works for user or shared mailboxes. In the first moment, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3211,"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":[685,2],"tags":[],"class_list":["post-3160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-active-directory","category-exchange"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/3160","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=3160"}],"version-history":[{"count":9,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/3160\/revisions"}],"predecessor-version":[{"id":3391,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/3160\/revisions\/3391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/media\/3211"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}