This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:mail:exchange:exchange [2019/01/27 08:00] gcooper |
internet:mail:exchange:exchange [2020/01/23 10:41] (current) gcooper |
||
---|---|---|---|
Line 5: | Line 5: | ||
See also **[[internet: | See also **[[internet: | ||
- | **Install Exchange 2010**: | + | See also **http:// |
===== Services Status ===== | ===== Services Status ===== | ||
Line 12: | Line 12: | ||
Get-Service | Where {$_.DisplayName -Like " | Get-Service | Where {$_.DisplayName -Like " | ||
</ | </ | ||
- | |||
- | ===== Local SMTP Relaying ===== | ||
- | |||
- | http:// | ||
- | |||
- | By default, the Default Receive Connector will not relay mail for anonymous users or devices. | ||
- | |||
- | '' | ||
- | |||
- | ==== Enable Anonymous users in Default connector under Hub Transport ==== | ||
- | |||
- | - Go to Hub Transport under Server Configuration in Exchange Management Console. | ||
- | - On the Receive Connectors tab double-click the Default connector. | ||
- | - On the Permission Groups tab make sure that your Exchange Server has the following boxes checked: | ||
- | * Anonymous users | ||
- | * Exchange users | ||
- | * Exchange servers | ||
- | - On the Authentication tab, make sure that you uncheck the box under Basic Authentication that says “Offer Basic authentication only after starting TLS.” | ||
- | - Restart Hub Transport service. | ||
===== Shut Down and Restart Exchange Services ===== | ===== Shut Down and Restart Exchange Services ===== | ||
Line 47: | Line 28: | ||
Get-service -name " | Get-service -name " | ||
</ | </ | ||
+ | |||
+ | Using '' | ||
+ | |||
+ | < | ||
+ | net stop msexchangeadtopology /y | ||
+ | net stop msexchangefba /y | ||
+ | net stop msftesql-exchange /y | ||
+ | net stop msexchangeis /y | ||
+ | net stop msexchangesa /y | ||
+ | net stop HostControllerService | ||
+ | net stop MSExchangeHM | ||
+ | net stop MSExchangeDiagnostics | ||
+ | net stop MSExchangeADTopology | ||
+ | net stop FMS | ||
+ | </ | ||
+ | |||
+ | and '' | ||
+ | |||
+ | < | ||
+ | net start FMS | ||
+ | net start MSExchangeADTopology | ||
+ | net start MSExchangeDiagnostics | ||
+ | net start MSExchangeHM | ||
+ | net start HostControllerService | ||
+ | net start msexchangeIS | ||
+ | net start msexchangeServiceHost | ||
+ | net start msexchangeMailboxAssistant | ||
+ | net start msexchangeDelivery | ||
+ | net start msexchangeSubmission | ||
+ | net start msexchangeMailboxReplication | ||
+ | net start msexchangeTransport | ||
+ | net start msexchangeTransportLogSearch | ||
+ | net start msexchangeThrottling | ||
+ | net start msexchangeFrontEndTransport | ||
+ | net start msexchangeFastSearch | ||
+ | net start msexchangeRPC | ||
+ | net start msexchangeUM | ||
+ | net start msexchangeUMCR | ||
+ | net start msexchangeEdgeSync | ||
+ | net start msexchangeDAGMgmt | ||
+ | net start msexchangeRepl | ||
+ | net start msexchangeAntiSPAMUpdate | ||
+ | net start msexchangeIMAP4 | ||
+ | net start msexchangeIMAP4BE | ||
+ | </ | ||
==== Exchange 2007 ==== | ==== Exchange 2007 ==== | ||
Line 99: | Line 125: | ||
</ | </ | ||
- | ===== Database Recovery ===== | + | ===== Restore Deleted Mailbox ===== |
+ | |||
+ | https:// | ||
+ | |||
+ | Show recently deleted databases: | ||
+ | |||
+ | < | ||
+ | Get-MailboxDatabase | Get-MailboxStatistics | Where {$_.DisconnectReason -eq " | ||
+ | </ | ||
+ | |||
+ | Restore a recently deleted mailbox (recreate destination user and mailbox first): | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | < | ||
+ | New-MailboxRestoreRequest -SourceStoreMailbox < | ||
+ | |||
+ | Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics | ||
+ | </ | ||
+ | |||
+ | ==== Restore Failures ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Status of restore requests: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics | ||
+ | </ | ||
+ | |||
+ | Collect details of failed restore requests: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest -Status failed | Get-MailboxRestoreRequestStatistics -IncludeReport | format-list > c: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Set-MailboxRestoreRequest -Identity " | ||
+ | </ | ||
+ | |||
+ | Always use '' | ||
+ | |||
+ | Cleanup: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest | ||
+ | </ | ||
+ | |||
+ | ===== Mailbox | ||
+ | |||
+ | :!: **You may need to do a database repair first**! | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ===== Database Repair | ||
<note warning> | <note warning> | ||
Line 183: | Line 265: | ||
isinteg -s servername -fix -test alltests | isinteg -s servername -fix -test alltests | ||
</ | </ | ||
+ | |||
+ | ===== Database Recovery ===== | ||
+ | |||
+ | :!: **If you can, restore the mailboxes without restoring from backup**. | ||
+ | |||
+ | Here we have **restored the database and log files from backup**: | ||
+ | |||
+ | Check for Clean Shutdown: | ||
+ | |||
+ | < | ||
+ | eseutil /mh " | ||
+ | </ | ||
+ | |||
+ | Create a new recovery database in Exchange using the restored databse file and logs: | ||
+ | |||
+ | < | ||
+ | New-MailboxDatabase -Recovery -Name RecoveryDB -Server SERVERNAME -EdbFilePath " | ||
+ | |||
+ | Get-MailboxStatistics -Database RecoveryDB | ft –auto | ||
+ | </ | ||
+ | |||
+ | ===== Recover Mailbox from Recovery Database ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | < | ||
+ | Get-MailboxStatistics -Database RecoveryDB | where displayname -eq "User Name" | ||
+ | </ | ||
+ | |||
+ | :!: You must add '' | ||
+ | |||
+ | :!: Add '' | ||
+ | |||
+ | < | ||
+ | New-MailboxRestoreRequest -SourceDatabase RecoveryDB -SourceStoreMailbox " | ||
+ | |||
+ | Get-MailboxRestoreRequest | Get-MailboxRestoreRequestStatistics | ||
+ | </ | ||
+ | |||
+ | Cleanup: | ||
+ | |||
+ | < | ||
+ | Get-MailboxRestoreRequest -Status Completed | Remove-MailboxRestoreRequest | ||
+ | </ | ||
+ | |||
+ | ===== Export Mailbox to PST ===== | ||
+ | |||
+ | :!: To export to PST, you must recover the mailbox first. | ||
+ | |||
+ | < | ||
+ | New-MailboxExportRequest -Mailbox username -FilePath \\server\share\path\username.pst | ||
+ | |||
+ | Get-MailboxExportRequest | Get-MailboxExportRequestStatistics | ||
+ | </ | ||
+ | |||
+ | ===== Rebuild Search Index ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | :!: Rebuilding the search index will cause **high CPU load**. | ||
+ | |||
+ | < | ||
+ | Get-MailboxDatabaseCopyStatus * | sort name | Select name, | ||
+ | |||
+ | Stop-Service MSExchangeFastSearch | ||
+ | Stop-Service HostControllerService | ||
+ | |||
+ | Get-MailboxDatabase | ||
+ | Get-MailboxDatabase " | ||
+ | </ | ||
+ | |||
+ | Using File Manager, **delete the sub-folder with a GUID for the name** containing the content index files. | ||
+ | |||
+ | < | ||
+ | Start-Service MSExchangeFastSearch | ||
+ | Start-Service HostControllerService | ||
+ | </ | ||
+ | |||
+ | Wait a while, then recheck the '' | ||
+ | |||
+ | ===== Check Version ===== | ||
+ | |||
+ | < | ||
+ | https://< | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | Get-ExchangeServer | fl name, | ||
+ | </ | ||
+ | |||
+ | Then cross-reference here: | ||
+ | |||
+ | https:// | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== |