{"id":1823,"date":"2016-02-16T02:37:52","date_gmt":"2016-02-16T02:37:52","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1823"},"modified":"2016-02-16T02:37:52","modified_gmt":"2016-02-16T02:37:52","slug":"exchange-2010-cannot-login-after-mailbox-has-been-disabled-and-attached-to-different-ad-user-account","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1823","title":{"rendered":"Exchange 2010 \u2013 Cannot login after mailbox has been disabled and attached to different AD user account"},"content":{"rendered":"<p>I was asked to rename an Exchange account (sitting on an Exchange 2010 SP2 server) for a customer today because the surname had changed so to do this tidily, I disabled the Exchange Mailbox, cleaned up the Databases to make the mailbox appear in the Detached Mailboxes folder using the following Exchange Management Shell command:<\/p>\n<p>get-mailboxdatabase | clean-mailboxdatabase<\/p>\n<p><a href=\"http:\/\/microsoftgeek.com\/?attachment_id=1824#main\" rel=\"attachment wp-att-1824\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-1824\" src=\"http:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/02\/clean_mailbox.jpg\" alt=\"clean_mailbox\" width=\"666\" height=\"347\" srcset=\"https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/02\/clean_mailbox.jpg 666w, https:\/\/microsoftgeek.com\/wp-content\/uploads\/2016\/02\/clean_mailbox-300x156.jpg 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Once that had run, I then deleted the AD user account, created a new AD user account and then Connected the Detached Mailbox to the new AD user account.<\/p>\n<p>All done \u2013 I then informed the user of the new login credentials and they then setup their Outlook account accordingly.<\/p>\n<p>It was then that the problem occurred. \u00a0They couldn\u2019t login to their account. \u00a0They tried OWA and that failed too, saying that the account was disabled! \u00a0What the heck?<\/p>\n<p>I tried using OWA and also got Account Disabled and saw the following error message when expanding the error:<\/p>\n<p>Exception type: <span class=\"skimlinks-unlinked\">Microsoft.Exchange.Data.Storage.AccountDisabledException<\/span><\/p>\n<p>I checked the AD account and it wasn\u2019t disabled. \u00a0Forced an AD Replication and that made no difference. \u00a0I disabled the account \u2013 replicated AD \u2013 enabled the account \u2013 replicated AD again and still couldn\u2019t login to OWA.<\/p>\n<p>After a few checks and some head scratching, I re-ran<\/p>\n<p>get-mailboxdatabase | clean-mailboxdatabase<\/p>\n<p>and then was able to login to OWA as the user and they could login to Outlook.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was asked to rename an Exchange account (sitting on an Exchange 2010 SP2 server) for a customer today because the surname had changed so to do this tidily, I disabled the Exchange Mailbox, cleaned up the Databases to make the mailbox appear in the Detached Mailboxes folder using the following Exchange Management Shell command: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,21,22],"tags":[],"class_list":["post-1823","post","type-post","status-publish","format-standard","hentry","category-ms-exchange","category-exchange-2007","category-exchange-2010"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1823"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1823\/revisions"}],"predecessor-version":[{"id":1825,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1823\/revisions\/1825"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}