{"id":3523,"date":"2018-08-01T22:42:42","date_gmt":"2018-08-01T22:42:42","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=3523"},"modified":"2018-08-01T22:42:42","modified_gmt":"2018-08-01T22:42:42","slug":"best-way-to-disable-exchange-user-account-of-a-leaver","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/random\/best-way-to-disable-exchange-user-account-of-a-leaver","title":{"rendered":"Best way to Disable Exchange User Account of a Leaver"},"content":{"rendered":"<p><a href=\"https:\/\/blogs.technet.microsoft.com\/messaging_with_communications\/2012\/06\/27\/part-ii-disabled-accounts-and-users-still-being-able-to-access-via-outlook-owa\/\">Disabling an AD account is not instant<\/a>\u00a0so the best was is to disable the services for the user :<\/p><p>(It can take around 5-10 minutes for the disabling of the protocols and\/or settings to go into effect )\u00a0<\/p><p>&nbsp;<\/p><p><strong>For Exchange 2007:\u00a0<\/strong>Set-CASMailbox -Identity &lt;user&gt; -OwaEnabled $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -MapiEnabled $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -MapiBlockOutlookRpcHttp $true<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -OwaEnabled $false<\/p><p>&nbsp;<\/p><p><strong>\u00a0For Exchange 2010, 2013, 2016 and 365:<\/strong>Set-CASMailbox -Identity &lt;user&gt; -OwaEnabled $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -EwsEnabled $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -EwsEnabled $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -EcpEnabled $fals<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -MapiEnabled $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -MapiBlockOutlookRpcHttp $true<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -EwsAllowMacOutlook $false<\/p><p>Set-CASMailbox -Identity &lt;user&gt; -EwsAllowOutlook $false<\/p><p>&nbsp;<\/p><p>You might want to set an Out of Office on for the user if needed for external parties, and also arrange email forwarding to a colleague and access to the mailbox for previous mail<\/p><p>&nbsp;<\/p><p>Then Disable AD account!<\/p><p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Disabling an AD account is not instant\u00a0so the best was is to disable the services for the user :(It can take around 5-10 minutes for the disabling [&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],"tags":[2589,2591,2592,2590],"class_list":["post-3523","post","type-post","status-publish","format-standard","hentry","category-random","tag-disable-ad-account","tag-how-long-does-it-take-to-disable-user-in-exchange","tag-leaver-process","tag-user-still-able-to-access-active-sync-after-being-disabled"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3523","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=3523"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3523\/revisions"}],"predecessor-version":[{"id":3524,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3523\/revisions\/3524"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=3523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=3523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=3523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}