The need for an ExMerge replacement
ExMerge is a tool created by Microsoft Support in the Exchange 5.5 timeframe, used to allow Administrators to export and import mailbox content to/from PST files. Over the years this tool became popular since, because of its flexibility, it could be used in a number of scenarios where specific tools did not exist. As a result of this popularity, the Exchange team took on development ownership of ExMerge for Exchange 2003 and released it as a tool over the web.
Even though ExMerge proved to be a helpful tool for Exchange Administrators, there were several problems that needed to be addressed in :
Export-Mailbox
Export-Mailbox was built to address scenarios where mailbox content needs to be copied from one active mailbox to another without actually migrating the whole mailbox object. Source and target servers used by export-mailbox need to be part of a Single Forest or Resource Forests. That is, mailbox content can only be exported to mailboxes within the same forest.
The following versions are supported by export-mailbox:
Exchange Permission requirements:
Current functionality available for Export-Mailbox
Pre-Validation and New and Improved Logging
Export-Mailbox benefits from a pre-validation functionality similar to the one present in move-mailbox. This feature saves time by identifying most errors right away before the export begins, instead of waiting until they happen during an actual export.
Also available for Export-Mailbox is the comprehensive log feature: Event logs, a XML Report and a troubleshooting log. All logs are enabled by default and are located at Export-mailbox available options Features postponed The following options were not included for : - Exporting content directly to a PST file: Part of the challenge here was to adapt our code to the Outlook PST provider, which provides the most up to date PST functionality. Currently Administrators can export content to folders inside one or more mailboxes and then manually export this content to PST files using Outlook. Also, will not actively block access from ExMerge clients supported by Exchange 2003. This is not a scenario officially tested but customers have reported that running ExMerge from an Exchange 2003 server and accessing databases indeed works. Native support for this PST is being planned to be part of Service Pack 1. - UI interface: Since most of the common scenarios for ExMerge were related to bulk operations we have decided to focus on delivering the needed functionality first and a GUI later. There is no defined date for the creating of such interface for the export-mailbox task at this point. Customer scenarios and examples These are the supported customer scenarios for Export-Mailbox: During a litigation process, Administrators may need to regularly export mailbox content from selected users. These searches will be based on criteria defined by lawyers. This content will be exported from one or more source mailboxes into a temporary mailbox that the lawyers can access. The lawyers would then process the data and send the data to opposing counsel. When accounts are about to be removed from a server (as in college students graduating or users leaving a hosting account)administrators might want to send mailbox content to the former users that for some reason could not manually copy the email content themselves. Admin would use the Export-Mailbox option to export the data to some intermediary mailbox and then manually export data to end users via PST files. In the course of daily operations of an IT Emergency Response organization, administrators need the ability to scan a large number of messages based on specified criteria, and perform mass deletion of any suspect email found. By using Export-Mailbox and the â€"DeleteContent parameter along with specific filter options, they are able to search and delete such messages. Export-Mailbox examples: Exporting mailbox content based on Organizational information: Export all content from all mailboxes where user Title starts with VP to a folder called VPData in the Administrator mailbox: Get-user | where { $_.Title -ilike "VP*" } | export-mailbox -TargetFolder "VPData" -TargetMailbox Administrator Export all content from all mailboxes from the Accounting department to a folder called AccountingData in the Administrator mailbox: Get-user | where { $_.Department -Eq "Accounting" } | export-mailbox -TargetFolder " AccountingData" -TargetMailbox Administrator Using filtering when Exporting mailbox content: Export all content from UserMailbox1's mailbox received between 02/02/05 and 02/05/05 to a folder called User1Data in the UserMailbox2's mailbox: Export-mailbox -id UserMailbox1 â€"StartDate "02/02/05" â€"EndDate "02/05/05" -TargetFolder 'User1Data' -TargetMailbox UserMailbox2 Export all content from the Sent Items folder of UserMailbox1's mailbox to a folder called User1SentItems in the UserMailbox2's mailbox: Export-mailbox -id UserMailbox1 -IncludeFolders "\Sent Items" -TargetFolder ' User1SentItems' -TargetMailbox UserMailbox2 Filters out content from the Deleted Items folder and only exports messages that are in Japanese to a folder called User1JapaneseItems in the UserMailbox2's mailbox: Export-mailbox -id UserMailbox1 -ExcludeFolders "\Deleted Items" -Locale ja-jp -TargetFolder 'User1JapaneseItems' -TargetMailbox UserMailbox2 Using filtering to Export and delete mailbox content: Export and delete all messages that contain "Confidential" in their subject from all mailboxes from the DB1 database to a folder called ConfidentialData in the Administrator mailbox: Get-mailbox -database 'DB1' | export-mailbox â€"SubjectKeywords "Confidential" -TargetFolder "ConfidentialData" -TargetMailbox Administrator â€"DeleteContent Export and deletes all messages that have an attachment that contains the word "movie" in its name from all mailboxes from the DB1 database to a folder called MovieAttachmentMessages in the Administrator mailbox: Get-mailbox -database 'DB1' | export-mailbox â€"AttachmentFilenames "movie" -TargetFolder "MovieAttachmentData" -TargetMailbox Administrator â€"DeleteContent Export and deletes all messages that contains the word "virus" in its body or in its attachment body from all mailboxes from the DB1 to a folder called VirusMessages in the Administrator mailbox: Get-mailbox -database 'DB1' | export-mailbox -ContentKeywords "virus" -TargetFolder "VirusMessages" -TargetMailbox Administrator â€"DeleteContent
# ---------------------------------------------------------------------------------------------------
function set-GCrole
# ---------------------------------------------------------------------------------------------------
{
Param (
$serverName,
$IsGC = "enable"
)
$dse = [adsi]("LDAP://"+$Servername+"/RootDSE")
$ntds = [adsi]("LDAP://"+$dse.dsServiceName)
# 1 = enable, 0 or nothing = disable
If ($IsGC -eq "disable")
{
$ntds.options = 0
}
else
{
$ntds.options = 1
}
$ntds.SetInfo()
}
# ---------------------------------------------------------------------------------------------------
If ($Args.count -ne 2)
{
write-host "You need to provide the Name of the DC,"
write-host "and the ""enable"" or ""disable"" keyword."
write-host "example: Set-GCrole.ps1 ""server1"" ""enable"""
write-host
exit
}
Set-GCrole $Args[0] $args[1]Full Server Recovery of a Domain Controller (a nonauthoritative restore)
| Note |
| If your objective is to recover objects that were deleted since the last backup, first perform a nonauthoritative restore from backup to reinstate the deleted objects and then perform an authoritative restore to mark the deleted objects as authoritative so that they are not overwritten during replication. When you are performing both a nonauthoritative restore and an authoritative restore, do not allow the domain controller to restart after the nonauthoritative restore. For information about performing authoritative restore, see Performing Authoritative Restore of Active Directory Objects. |
| Note |
| Active Directory replication updates the objects that you restore with any changes that have been made to them since the time that the backup was taken. |

Requirements - Full Server Recovery of a Domain Controller
| Note |
| Windows Server Backup does not enumerate drives that are not attached or turned on when you start the Recovery Wizard. If you attach or turn on a drive after you start the wizard, and you do not see it in the list of backup locations that you can restore from, close, and then restart Windows Server Backup. |
Forest Recovery Procedures - Stage 2
| Role | Credentials | Command |
| Domain naming master | Enterprise Admins | For Windows Server 2003: Seize domain naming master For Windows Server 2008: Seize naming master |
| Schema master | Schema Admins | Seize schema master |
| Infrastructure master | Domain Admins | Seize infrastructure master |
| PDC emulator master | Domain Admins | Seize pdc |
| RID master | Domain Admins | Seize rid master |
| Note |
| Active Directory replication updates the objects that you restore with any changes that have been made to them since the time that the backup was taken. |
















Forest Bare Metal Recovery - Windows & AD Failed
