E14 Ticket: How to Reconnect Deleted Mailbox

 

  1. http://exchangeserverpro.com/reconnect-disconnected-mailbox-exchange-server-2010
  2. [PS] C:\>Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto

    DisplayName                  Database                          DisconnectReason
    ———–                  ——–                          —————-
    Evelyn Yeh                   BQT-DAG2_MSFT_BQP_NOV                     Disabled
    bqt.test005                  BQT-Archive01_TestDB                      Disabled
    BQT.MSV11                    BQT-Archive01_TestDB                      Disabled

  3. [PS] C:\>Connect-Mailbox -Identity "Evelyn Teh" -Database BQT-DAG2_MSFT_BQP_NOV -User Evelyn.Teh

    WARNING: The operation completed successfully but the change will not become effective until Active Directory replication occurs.

  4.     Your account has been disabled.

    Request
    Url: https://roh.MSFT.com:443/owa/
    User host address: 10.82.162.78
    User: Evelyn.Teh
    EX Address: /o=MSFT/ou=bqt/cn=recipients/cn=evelyn teh
    SMTP Address: Evelyn.Teh@MSFT.com
    OWA version: 14.2.328.9

    Exception
    Exception type: Microsoft.Exchange.Data.Storage.AccountDisabledException
    Exception message: Cannot open mailbox /o=MSFT/ou=bqt/cn=recipients/cn=evelyn teh.

  5. http://support.microsoft.com/kb/2682047 
  6. [PS] C:\>Get-MailboxDatabase -Server bqt-mbx01  | Clean-MailboxDatabase
    [PS] C:\>Get-MailboxDatabase -Server bqt-mbx02  | Clean-MailboxDatabase

LAB: E14 PowerShell: Remove-StoreMailbox (Disconnect Mailbox, SoftDeleted)

 

LAB: E14 PowerShell: Remove-StoreMailbox (Disconnect Mailbox, SoftDeleted)

當信箱從 Exchange Server 2010 SP1 信箱資料庫移至任何其他信箱資料庫時,會建立虛刪除的信箱。Exchange 並不會在移動之後完全刪除來源資料庫中的信箱,以避免發生錯誤而造成目的資料庫中的信箱失效。您可以隨時還原來源信箱並再試一次。Exchange 會在保留期間保留虛刪除信箱。

您可以在虛刪除的信箱上執行兩項作業:

· 您可以在命令介面中使用 MailboxRestoreRequest 指令程式集將虛刪除信箱還原至現有的 Active Directory 使用者。此指令程式集使用信箱複寫服務 (MRS) 來重新連線信箱。您無法使用 EMC 來執行此程序。如需相關資訊,請參閱還原虛刪除的信箱

· 您可以使用 Remove-StoreMailbox 指令程式永久刪除虛刪除信箱。此程序會清除信箱資料庫中已中斷連線的信箱以及其全部的內容。資料會永久遺失。如需相關資訊,請參閱永久刪除中斷連線的信箱

clip_image001附註:

您可以只對中斷連線的信箱執行 Remove-StoreMailbox 指令程式。如果您嘗試對作用中信箱執行指令程式,則指令程式會失敗並傳回錯誤。如需如何永久刪除作用中信箱的相關資訊,請參閱移除信箱中的「使用命令介面永久移除信箱」。

永久刪除中斷連線的信箱

當您使用 Remove-StoreMailbox Cmdlet 將中斷連線的信箱及其所有內容從信箱資料庫清除時,便會永久遺失資料。已中斷連線的信箱有兩種類型:虛刪除和已停用。執行 Cmdlet 時,您必須指定其中一種類型。如果您指定的類型與已中斷連線信箱的實際類型不符,命令便會失敗。

若要深入了解中斷連線的信箱,請參閱了解中斷連線的信箱

clip_image001[1]附註:

您可以只對中斷連線的信箱執行 Remove-StoreMailbox Cmdlet。如果您嘗試對作用中信箱執行 Cmdlet,則 Cmdlet 會失敗並傳回錯誤。如需如何永久刪除作用中信箱的詳細資訊,請參閱移除信箱中的〈使用命令介面永久移除信箱〉。

要尋找與已中斷連線的信箱相關的其他管理工作嗎?請參閱管理中斷連線的信箱

clip_image001[2]使用命令介面永久刪除中斷連線的信箱


您必須已獲指派權限,才能執行此程序。若要查看您需要的權限,請參閱信箱權限主題中的「中斷連線的信箱」項目。

clip_image001[3]附註:

您無法使用 EMC 永久刪除中斷連線的信箱。

這個範例會從信箱資料庫 MBD01 中,永久刪除 Ayla 的虛刪除信箱。

Remove-StoreMailbox -Database MBD01 -Identity Ayla -MailboxState SoftDeleted

這個範例會從信箱資料庫 MBD01 中,永久刪除所有虛刪除信箱。

Get-MailboxStatistics -Database MBD01 | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

這個範例會從信箱資料庫 MBD01 中,永久刪除 UID 為 2ab32ce3-fae1-4402-9489-c67e3ae173d3 的已停用信箱。

Remove-StoreMailbox -Database MBD01 -Identity "2ab32ce3-fae1-4402-9489-c67e3ae173d3" -MailboxState Disabled

clip_image003

clip_image005

clip_image007

Get-MailboxStatistics -Database MBD01 | where {$_.DisconnectReason -eq "SoftDeleted"}

clip_image009

Get-MailboxStatistics -Database MBD01 | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

clip_image011

clip_image013

clip_image015

clip_image017

clip_image019

clip_image021

clip_image023

clip_image025

clip_image027

clip_image029

clip_image031

clip_image033

clip_image035

clip_image037

clip_image039

clip_image041

clip_image043

E14–Mail Enable after ADMT Mail Group

 

 

image

image

 

[PS] C:\Windows\system32>Get-Group -Identity JS.AllGroup | fl

RunspaceId           : f76d0203-ca9e-4579-b578-23842539ffe1
DisplayName          : JS.AllGroup
GroupType            : Universal, SecurityEnabled
ManagedBy            : {}
SamAccountName       : JS.AllGroup
Sid                  : S-1-5-21-3280115619-3012524529-1380902707-1155
SidHistory           : {S-1-5-21-387562510-2723945668-297530758-1624}
SimpleDisplayName    :
RecipientType        : MailUniversalSecurityGroup
RecipientTypeDetails : MailUniversalSecurityGroup
WindowsEmailAddress  :
Notes                :
Members              : {Test.com.tw/Test_Import/JS.Sales, Test.com.tw/Test_Import/JS.ITS, Test.com.tw/JS
                       Funds_Import/JS.Group5, Test.com.tw/Test_Import/JS.Group3, Test.com.tw/Test_Import/J
                       S.Group2, Test.com.tw/Test_Import/JS.Finance}
PhoneticDisplayName  :
OrganizationalUnit   : Test.com.tw/Test_Import
SeniorityIndex       :
IsHierarchicalGroup  : False
IsValid              : True
ExchangeVersion      : 0.0 (6.5.6500.0)
Name                 : JS.AllGroup
DistinguishedName    : CN=JS.AllGroup,OU=Test_Import,DC=Test,DC=com,DC=tw
Identity             : Test.com.tw/Test_Import/JS.AllGroup
Guid                 : 68471237-4e3c-4f12-9337-5a3bd615be73
ObjectCategory       : Test.com.tw/Configuration/Schema/Group
ObjectClass          : {top, group}
WhenChanged          : 2011/10/12 下午 02:22:38
WhenCreated          : 2011/10/12 下午 02:22:34
WhenChangedUTC       : 2011/10/12 上午 06:22:38
WhenCreatedUTC       : 2011/10/12 上午 06:22:34
OrganizationId       :
OriginatingServer    : NewDC1.Test.com.tw

===============================================
[PS] C:\Windows\system32>Get-Group -Identity JS.E14Group | fl

RunspaceId           : f76d0203-ca9e-4579-b578-23842539ffe1
DisplayName          : JS.E14Group
GroupType            : Universal
ManagedBy            : {Test.com.tw/Users/Administrator}
SamAccountName       : JS.E14Group
Sid                  : S-1-5-21-3280115619-3012524529-1380902707-1171
SidHistory           : {}
SimpleDisplayName    :
RecipientType        : MailUniversalDistributionGroup
RecipientTypeDetails : MailUniversalDistributionGroup
WindowsEmailAddress  : JS.E14Group@Test.com.tw
Notes                :
Members              : {}
PhoneticDisplayName  :
OrganizationalUnit   : Test.com.tw/JSfund_User
SeniorityIndex       :
IsHierarchicalGroup  : False
IsValid              : True
ExchangeVersion      : 0.10 (14.0.100.0)
Name                 : JS.E14Group
DistinguishedName    : CN=JS.E14Group,OU=JSfund_User,DC=Test,DC=com,DC=tw
Identity             : Test.com.tw/JSfund_User/JS.E14Group
Guid                 : 48f8081c-c284-4373-9ee8-ab8bfb308566
ObjectCategory       : Test.com.tw/Configuration/Schema/Group
ObjectClass          : {top, group}
WhenChanged          : 2011/10/12 下午 03:05:01
WhenCreated          : 2011/10/12 下午 03:05:01
WhenChangedUTC       : 2011/10/12 上午 07:05:01
WhenCreatedUTC       : 2011/10/12 上午 07:05:01
OrganizationId       :
OriginatingServer    : NewDC1.Test.com.tw
=============================================

image

image

image

image

image

image

image

image

Tikcet–Exchange 2010 Reconnect deleted archive mailbox

1. When move user mailbox with archive mailbox, I disabled archive mailbox first and create new archive mailbox for this user again. Then I want to retrive original archive mailbox of exist user.

image

2. Get disabled archvie mailbox.

[PS] >Get-MailboxStatistics -Database BQT-DAG1_ArchiveMailbox | ft displayname, itemcount, identity

image

3. Remove disabled archive mailbox.

[PS] >Remove-StoreMailbox -Database bqt-dag1_archivemailbox -Identity "934c17f3-cd1e-46e1b5e66e7bb" -MailboxState disabled

confirm
are you sure you want to perform this action?
removing mailbox "934c17f3-cd1e-46ea-a572-e51b5e66e7bb" on database "bqt-dag1_archivemailbox".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y

image

4. Reconnect archive mailbox to user.

image

5. Move archive mailbox to new archvie mailbox database

image

6.
image

7.

Get-MailboxStatistics -Database BQT-E14CAS1_OCT | ft DisplayName,DisconnectReason

image

8.

[PS] >Get-MailboxStatistics -Database BQT-E14CAS1_OCT | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}

Ticket: Exchange 2010 Remove Mailbox Database

 

http://markswinkels.nl/2009/05/19/exchange-2010-delete-the-first-mailbox-database/
http://johnnyyao.blogspot.com/2010/09/ticket-exchange-2010-cannot-remove.html (Bloger)

image

——————————————————–
Microsoft Exchange 錯誤
——————————————————–
無法刪除信箱資料庫 ‘BQT_DAG1_SystemMailbox’。

BQT_DAG1_SystemMailbox
失敗
錯誤:
This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, or arbitration mailboxes.

To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>.

To get a list of all mailbox plans in this database, run the command Get-MailboxPlan.

To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive.

To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration.

To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>.

To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive.

Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>.

If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>.

——————————————————–
確定
——————————————————–

[PS] C:\Users\Exchadm\Desktop>Get-MailboxStatistics -Database bqt_dag1_systemmailbox | ft displayname,identity, itemcount,DisconnectReason

DisplayName                   Identity                                          ItemCount              DisconnectReason
———–                   ——–                                          ———              —————-
IMSS.Spam                     3787e1d1-4b65-4e6b-9ceb-01…                         37845                   SoftDeleted
IMSS.SPAM_Medium              17a65a4c-b985-42e5-a2d9-09…                             7                   SoftDeleted
SearchResults                 b824fb5c-e5b0-4d9d-8b6c-49…                             6                   SoftDeleted
SystemMailbox{31a55c57-2b1… b6216977-4939-4aa6-818d-4f…                             6
ADCAdmin                      2902a763-3f8f-44f8-8e91-63…                            36
Room155                       f8001c6f-fb45-4b24-8f39-6a…                             9                   SoftDeleted
Microsoft Exchange            56846f10-718d-4f56-8253-75…                            21
Administrator                 e9315f48-2935-4466-9f88-99…                         30802                   SoftDeleted
Whitelist.Request             10e3d2c4-6f69-4a5a-8386-a2…                           300                   SoftDeleted
exchadm                       981d5e47-8565-4cff-8758-cd…                          1475                   SoftDeleted
IMSS.Quar                     3604c2e2-6c3a-42e1-b99a-d4…                            52                   SoftDeleted
IMSS.SPAM_Low                 b8601e77-0661-4eb5-99c3-df…                            14                   SoftDeleted

image

get-mailbox -Database bqt_dag1_systemmailbox -Arbitration | ft -wrap -auto

image

image

LAB: Exchange 2010 多信箱探索 Discovery Mailbox

 

http://technet.microsoft.com/zh-tw/library/dd335072.aspx
http://technet.microsoft.com/en-us/library/dd638177.aspx
http://social.technet.microsoft.com/Forums/en-GB/exchange2010/thread/7ce2db60-91bb-4fde-b056-a48cd5cd8c21

建立探索信箱

image 

Enable the discovery mailbox
Go to ADUC, unlock the mailbox, set a password for the account, then enable the account.

image

search result mailbox only accept message from search action
image

欲使用多信箱搜尋 (e-Discover) 的使用者須加入Discovery Management 群組,即便admins 之類的帳號也需額外加入
image

====================================================

image

image

image

image

image

image

====================================================
Re-Create the Discovery System Mailbox
http://technet.microsoft.com/en-us/library/gg588318.aspx

Delete the SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9} user account from Active Directory, if it exists. By default, Exchange Server 2010 Setup creates the mailbox in the Users container in Active Directory. For details about how to delete a user account from Active Directory, see Delete a User Account.

  1. Prepare Active Directory by running Microsoft Exchange 2010 Setup with the /PrepareAD switch in the root domain of your Active Directory forest. For details, see Prepare Active Directory and Domains.
  2. Enable the Discovery system mailbox.
    You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Recipient Provisioning Permissions" section in the Mailbox Permissions topic.

    Gg588318.note(en-us,EXCHG.141).gifNote:

    You can’t use the EMC to enable the Discovery system mailbox.

    This example enables the Discovery system mailbox. You must specify the fully qualified domain name (FQDN) of a global catalog server in the root domain of the Active Directory forest.

    Enable-Mailbox -Arbitration -DomainController <FQDN of root global catalog server> -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"

於root 進行setup /prepareAD 後,系統帳號重新產生

image

image

====================================================

If you want to run the New-MailboxSearch cmdlet, you have to add the admin account into the Discovery Management role group.

Create a Discovery Mailbox

image

image

=============================================================

[PS] C:\Users\Exchadm\Desktop>New-MailboxSearch -Name "microsoft" -SourceMailboxes johnny.yao -TargetMailbox bqt.discover@msft.com  -StartDate "06/12/2011" -EndDate "06/15/2011" -SearchQuery "Microsoft"

image

[PS] C:\Users\Exchadm\Desktop>New-MailboxSearch -Name "microsoft-1" -SourceMailboxes johnny.yao -TargetMailbox bqt.discover@msft.com  -StartDate "06/12/2011" -EndDate "06/15/2011" -SearchQuery "Microsoft" -LogLevel full –IncludeUnsearchableItems

=============================================================

get-mailboxsearch

image