{"id":31,"date":"2023-03-19T07:44:41","date_gmt":"2023-03-19T06:44:41","guid":{"rendered":"http:\/\/10.4.44.99:10084\/?p=31"},"modified":"2023-03-19T07:44:41","modified_gmt":"2023-03-19T06:44:41","slug":"microsoft-exchange-2010-shell-remove-mailbox","status":"publish","type":"post","link":"https:\/\/www.winni.at\/wordpress\/?p=31","title":{"rendered":"Microsoft Exchange 2010 | Shell | Remove Mailbox"},"content":{"rendered":"\n<p><strong>If you remove a Mailbox within the EMC it is still available at the section &#8220;detached mailbox&#8221;. With the following command you can final remove them.&nbsp;<\/strong><\/p>\n\n\n\n<p><strong>The command will change a little bit regarding the deleted state of the mailbox.<\/strong><\/p>\n\n\n\n<p><strong>With this command you will get every deleted Mailbox:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>get-mailboxdatabase | get-mailboxstatistics | Where{ $_.DisconnectDate -ne $null } |fl displayName,Identity,disconnectdate,database,DisconnectReason\n<\/code><\/pre>\n\n\n\n<p><strong>And with this command you can final remove them. The correct MailboxState is important:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Remove-StoreMailbox -database \u201cName of the Database\u201d -Identity \u201cValue from Identity\u201d -MailboxState Correct MailboxState (Softdeleted or Disabled or Harddeleted,...)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you remove a Mailbox within the EMC it is still available at the section &#8220;detached mailbox&#8221;. With the following<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[3],"tags":[84,136,142,162],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-kb","tag-exchange-remove-mailbox","tag-microsoft","tag-microsoft-exchange","tag-remove-mailbox"],"_links":{"self":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":0,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}