{"id":113,"date":"2021-01-08T21:57:49","date_gmt":"2021-01-08T21:57:49","guid":{"rendered":"http:\/\/merserver.com\/?p=113"},"modified":"2021-01-08T21:57:49","modified_gmt":"2021-01-08T21:57:49","slug":"office-365-errors-out-when-converting-to-shared-email","status":"publish","type":"post","link":"http:\/\/merserver.com\/index.php\/2021\/01\/08\/office-365-errors-out-when-converting-to-shared-email\/","title":{"rendered":"Office 365 errors out when converting to shared email"},"content":{"rendered":"\n<p>This is for when Office 365 gives an error message when attempting to convert a terminated employee&#8217;s mailbox into a shared mailbox.&nbsp; It uses powershell to connect and requires admin login for the account itself. (I have not tested this with our logins that have partner portal access.&nbsp; If those work please update this wiki stating is as such.)<\/p>\n\n\n\n<p>Launch powershell and input the command:<\/p>\n\n\n\n<p><code>$UserCredential = Get-Credential<\/code><\/p>\n\n\n\n<p>It will launch a credentials window.&nbsp; Use the admin account user name and password.&nbsp; After putting in the credendials input the next commands in sequence allowing for the prompt to restore after each command:<\/p>\n\n\n\n<p><code>$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/outlook.office365.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic -AllowRedirection<\/code><\/p>\n\n\n\n<p><code>Import-PSSession $Session -DisableNameChecking<\/code><\/p>\n\n\n\n<p><code>Set-Mailbox [usermailbox] -Type Shared<\/code><\/p>\n\n\n\n<p>Where [usermailbox] is the terminated employee.&nbsp; If no error message happens then congratulations, you did a thing.&nbsp; Disconnect from the session before closing the powershell window by inputing:<\/p>\n\n\n\n<p><code>Remove-PSSession $Session<\/code><\/p>\n\n\n\n<p>You can now assign permissions and remove licenses in the admin portal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is for when Office 365 gives an error message when attempting to convert a terminated employee&#8217;s mailbox into a shared mailbox.&nbsp; It uses powershell to connect and requires admin login for the account itself. (I have not tested this with our logins that have partner portal access.&nbsp; If those work please update this wiki&#8230;<\/p>\n<p class=\"more-link-wrap\"><a href=\"http:\/\/merserver.com\/index.php\/2021\/01\/08\/office-365-errors-out-when-converting-to-shared-email\/\" class=\"more-link\">Read More<span class=\"screen-reader-text\"> &ldquo;Office 365 errors out when converting to shared email&rdquo;<\/span> &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":1,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":114,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/posts\/113\/revisions\/114"}],"wp:attachment":[{"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/merserver.com\/index.php\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}