{"id":6048,"date":"2022-08-30T12:52:15","date_gmt":"2022-08-30T12:52:15","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6048"},"modified":"2022-08-30T12:52:15","modified_gmt":"2022-08-30T12:52:15","slug":"undeletable-exchange-online-mailbox","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/undeletable-exchange-online-mailbox","title":{"rendered":"Undeletable Exchange Online Mailbox"},"content":{"rendered":"<p class=\"x_MsoNormal\">Symptom: After running disable-remotemailbox on <b>shared<\/b>\u00a0mailboxes the mailboxes were still showing as active in Exchange Online.<\/p><p class=\"x_MsoNormal\">Cause: Disable-remotemailbox only works if a account is a\u00a0<b>user<\/b>\u00a0mailbox AND the user mailbox is licensed. If you try any other combination of changing to a user mailbox and licensing order of operations, the mailbox will not be deleted.<\/p><p class=\"x_MsoNormal\" aria-hidden=\"true\">\u00a0<\/p><p class=\"x_MsoNormal\"><strong>Resolution:<\/strong><\/p><p class=\"x_MsoNormal\">Option 1 \u2013 Delete your user accounts or move them out of sync scope (for a minimum of 30 days). \u00a0We couldn\u2019t do this as there were several active user accounts that needed other 365 services.<\/p><p class=\"x_MsoNormal\">Option 2 \u2013 Relicense and convert the account prior to deleting. Note you need to run an adsync and make sure it has flowed through to exchange online prior to taking the next step. Proxy Addresses are a good thing to look at here.<\/p><p class=\"x_MsoNormal\">\u00a0<\/p><p class=\"x_MsoNormal\"><i>1. Run Enable-RemoteMailbox<\/i><\/p><p class=\"x_MsoNormal\"><b><i>2. Run a sync in Azure AD Connect server<\/i><\/b><\/p><p class=\"x_MsoNormal\"><i>3. License the user account<\/i><\/p><p class=\"x_MsoNormal\"><b><i>4. Run again sync in Azure AD Connect server<\/i><\/b><\/p><p class=\"x_MsoNormal\"><i>5. Remove the license of the user account<\/i><\/p><p class=\"x_MsoNormal\"><b><i>6. Run again a sync in Azure AD Connect server<\/i><\/b><\/p><p class=\"x_MsoNormal\"><i>7. Run Disable-RemoteMailbox<\/i><\/p><p class=\"x_MsoNormal\" aria-hidden=\"true\">\u00a0<\/p><p class=\"x_MsoNormal\" aria-hidden=\"true\">\u00a0<\/p>","protected":false},"excerpt":{"rendered":"<p>Symptom: After running disable-remotemailbox on shared\u00a0mailboxes the mailboxes were still showing as active in Exchange Online.Cause: Disable-remotemailbox only works if a account is a\u00a0user\u00a0mailbox AND the user [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1],"tags":[2198,3934,3935,3933],"class_list":["post-6048","post","type-post","status-publish","format-standard","hentry","category-random","category-research","tag-aadconnect","tag-enable-remotemailbox","tag-sync-in-azure-ad-connect-server","tag-undeletable-exchange-online-mailbox"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6048"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6048\/revisions"}],"predecessor-version":[{"id":6071,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6048\/revisions\/6071"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}