{"id":1189,"date":"2016-12-20T16:01:30","date_gmt":"2016-12-20T20:01:30","guid":{"rendered":"http:\/\/mikemartinezonline.com\/blog\/?p=1189"},"modified":"2016-12-20T16:01:30","modified_gmt":"2016-12-20T20:01:30","slug":"disable-email-accounts-in-exchange","status":"publish","type":"post","link":"https:\/\/mikemartinezonline.com\/blog\/2016\/12\/20\/disable-email-accounts-in-exchange\/","title":{"rendered":"Disable Email Accounts in Exchange"},"content":{"rendered":"<p><b>Deleting Mailbox in Exchange Admin Console will delete the attached AD objects!<\/b><\/p>\n<p>Always great to find out afterwards &#8211; thank you Microsoft. :\/<\/p>\n<p>So\u2026.to just disable an account:<\/p>\n<p>In the Exchange Management Console, right-click and select disable mailbox<\/p>\n<p>or <\/p>\n<p>in the Exchange Management PowerShell, use the Disable-Mailbox cmdlet:<\/p>\n<p>Disable-Mailbox -Identity {mailboxname} -Confirm:$false<\/p>\n<p>Disabling the mailbox will remove the Exchange attributes from the Active Directory object, which disconnects the mailbox and leaves the Active Directory object intact.<\/p>\n<p>The user account will remain in Active Directory and disconnected mailbox will be purged after retention period passes.<\/p>\n<p>&#8212;<\/p>\n<p>You may also need to change a group\u2019s ownership:<\/p>\n<p>Type in the following command and replace \u201cdistribution group\u201d with the actual group whose owner is changing.<\/p>\n<p>[PS] &gt;Set-DistributionGroup &quot;distribution group&quot; \u2013ManagedBy &quot;admin.serviceaccount@whomever.com&quot; -BypassSecurityGroupManagerCheck<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deleting Mailbox in Exchange Admin Console will delete the attached AD objects! Always great to find out afterwards &#8211; thank you Microsoft. :\/ So\u2026.to just disable an account: In the Exchange Management Console, right-click and select disable mailbox or in the Exchange Management PowerShell, use the Disable-Mailbox cmdlet: Disable-Mailbox -Identity {mailboxname} -Confirm:$false Disabling the mailbox &hellip; <a href=\"https:\/\/mikemartinezonline.com\/blog\/2016\/12\/20\/disable-email-accounts-in-exchange\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Disable Email Accounts in Exchange&#8221;<\/span><\/a><\/p>\n","protected":false},"author":587,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[258,174,171],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts\/1189"}],"collection":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/users\/587"}],"replies":[{"embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/comments?post=1189"}],"version-history":[{"count":1,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts\/1189\/revisions"}],"predecessor-version":[{"id":1190,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts\/1189\/revisions\/1190"}],"wp:attachment":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/media?parent=1189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/categories?post=1189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/tags?post=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}