Connect- MailboxMSFT Synopsis:Use the Connect-Mailbox cmdlet to connect a disconnected mailbox to an Active Directory directory service user object. When to Use:- When you have a disconnected mailbox object in the Exchange database that you wish to associate again with a user account.
Gotchas:- If not using the -User switch it is recommended you use [-ValidateOnly] to verify the user account that the mailbox will be connected to.
- If you do not specifiy a user and the cmdlet is not able to match the account based on [Exchange Legacy DN] or [Name] it will not connect the user.
Role:This command applies to the following Exchange Roles. [Mailbox] Permissions:The following permissions are required when you run this command. [Recipient Administrator] Examples:MSFT:| Description: | Reconnects the Disconnected mailbox with display name "John Peoples" matches it to the best AD account automatically. | | Command: | Connect-Mailbox -Database "Mailbox Database" -Identity "John Peoples" | Addtional:
| Description: | Attempt to reconnect all disconnected Mailboxes on a given database. | | Command: | Get-MailboxStatistics -database "server\mailbox database" | [where] {$_.disconnectdate -ne $null} | [foreach] {connect-mailbox -id $_.mailboxguid -database "server\mailbox database"} | | | | | Description: | Connects the disconnected mailbox "John Doe" to the user Account "Jane Doe" | | Command: | connect-mailbox -id "John Doe" -User "Jane Doe" |
|