Exchange EDB Restore with Ontrack PowerControls
Restore individual emails, folders, or entire mailboxes from an Exchange EDB without mounting the database: provide files, open the EDB, connect a target (Exchange, Exchange Online, PST), restore, and export.
In short: Ontrack PowerControls opens an Exchange database (.edb) directly as a file, without an Exchange server and without mounting. Mailboxes, folders, and individual items can be searched and copied back to an Exchange mailbox, an Exchange Online mailbox, or a PST file using copy and paste. This guide applies to PowerControls 9.6.4 (October 2025), the first version supporting Exchange Server SE, Outlook 2024, and Windows Server 2025.
When to use PowerControls instead of a Recovery Database
Exchange includes its own method through the Recovery Database (RDB): restore the database from the backup, mount it as an RDB, and copy it to a production mailbox with New-MailboxRestoreRequest. This requires an Exchange server with a suitable version, sufficient storage space on the mailbox server, and a consistent database.
PowerControls is the better choice in these cases:
- No suitable Exchange instance remains: The database comes from a retired version, such as an archive backup from Exchange 2010, while the environment now runs on Exchange Server SE or Exchange Online.
- Granular search: You need to find a specific email across multiple mailboxes or backup versions, filtering by subject, content, attachment, and date.
- Export instead of restore: Results need to go to attorneys, audit, or the user as PST or MSG files, rather than back into a mailbox.
- Restore to Exchange Online: The EDB only remains from the on-premises era, and the mailbox has already been migrated.
PowerControls does not modify the .edb or its associated log files. When first opened, it only creates index files (.idx, .dat) in the temporary path.
Prerequisites
| Item | Requirement |
|---|---|
| Version | PowerControls 9.6.4 for Exchange Server SE as a source or target |
| Restore computer | Windows client or Windows Server with Outlook (Outlook 2016 and later only connect through Autodiscover) |
| License | The trial version runs for 30 days. It opens sources and targets, searches, validates, and creates reports, but does not copy or export |
| Exchange On-Premises permissions | Full Access to every target mailbox being restored to |
| Mailbox creation permissions | AD permissions to create mailboxes and Exchange Management Tools in the same version and CU as the target server |
| Exchange Online permissions | App registration in Entra ID with full_access_as_app (EWS); see the Exchange Online section |
| Disk space | Space for the EDB copy plus temporary index files roughly equivalent to the size of the log files |
The complete list of supported operating systems, Outlook versions, and Exchange versions is in the Readme of the installation package.
Check the version before opening
Under Help > About, check which PowerControls version is installed and compare it with the build of the Exchange servers the database originates from:
Get-ExchangeServer | Format-Table Name, AdminDisplayVersion -AutoSize
| Build | Version | PowerControls |
|---|---|---|
15.2.1544 and lower | Exchange 2019 CU14 and earlier | 9.2 or later |
15.2.1748 | Exchange 2019 CU15 (February 2025) | later than 9.6.2 |
15.2.2562 and higher | Exchange Server SE | 9.6.4 |
If PowerControls displays the folder structure after opening but no items in any folder, an outdated PowerControls version is the first possible cause to rule out.
Install an update
PowerControls has no built-in update feature. Install a new version over the existing one:
- Request the installation package from Ontrack support using the license number under Help > About > License Info. Alternatively, it is emailed through the trial form on the Ontrack website. The trial and full versions use the same package; the license file makes the difference.
- Close open sources and targets using Close Store, then exit PowerControls. Back up the license file.
- Run Setup as an administrator.
- Check the version and license under Help > About. If PowerControls runs as a Free Trial afterward, import the license file again.
- Delete the old
.idxand.datfiles in the temporary path so the new version rebuilds the index.
If you use the Ontrack Administrative Server (OAS) for rights management or auditing, update OAS to 9.6.3 first before updating it to 9.6.4.
Provide database files
First, the database files must be available as files. For an image or VSS backup (Veeam, Rubrik, Windows Server Backup, Datto), restore the files to a working directory through file-level restore or attach the snapshot as a volume to the restore computer. An attached snapshot is usually read-only. That is sufficient because PowerControls does not modify the EDB or logs; the temporary path must then be on a writable drive. For classic tape and agent backups (Backup Exec, NetBackup, Commvault, Data Protector, NetWorker, IBM TSM, Arcserve), the separately licensed Ontrack ExtractWizard extracts the EDB directly from the backup set.
Store the files as follows:
D:\Restore\DB01\DB01.edb
D:\Restore\DB01\Logs\E00.chk
D:\Restore\DB01\Logs\E00*.log
D:\Restore\Temp\
.edbin one directory,.logand.chkin a second directory. The two directories may be different.- Log files are not mandatory, but without them, transactions that had not yet been written to the EDB at the time of backup will be missing. Depending on the database state, PowerControls may then report corruption errors.
- Place the temporary path on a volume with sufficient free space, not the system drive. Since Exchange 2007, every log file is 1 MB; 3,000 logs therefore require about 3 GB in the temporary path.
If the database originates from a DAG, the log directory contains additional subfolders alongside the current logs. For PowerControls, only the main folder with E00.chk and the E00*.log files matters:
| Contents | Meaning | For PowerControls |
|---|---|---|
E00.chk, E00*.log in the main folder | Current checkpoint and log files | Select this folder |
*.jrs in the main folder | Reserve logs of the database engine | Not needed, but harmless |
IgnoredLogs | Logs discarded by the replication service from a passive copy | Do not select |
<Zeitstempel>E00OutOfDate | Old logs following a reseed or divergent log stream | Do not select |
incseedInspect | Working directory of incremental reseed | Do not select |
A count by file extension shows whether the main folder contains the expected files:
Get-ChildItem "D:\Restore\DB01\Logs" -File |
Group-Object Extension | Select-Object Name, Count
You can check the database state in advance with eseutil. eseutil.exe is located in the Bin directory of every Exchange installation:
eseutil /mh "D:\Restore\DB01\DB01.edb"
State: Clean Shutdown means the database is consistent without log files. With Dirty Shutdown, Log Required shows the range of log files that must still be replayed. Those logs belong in the log directory. PowerControls replays them itself when opening. Running eseutil /r or eseutil /p on the database is not necessary. Never run eseutil /p on the only copy: hard repair permanently removes damaged pages.
Open the EDB as a source
At startup, PowerControls opens the Data Wizard. Alternatively, launch it through File > Use Wizard or open the source directly through File > Open Source.
- On the Source Selection page, under Select Source, choose EDB File (*.edb).
- Under EDB Path (*.edb), select the database file.
- Under Log File Path (*.log, *.pat, *.chk), enter the log directory. After you select the EDB, PowerControls automatically sets this field to the EDB directory, even if the logs are elsewhere. Therefore, fill in this field only after selecting the EDB and verify it before clicking Next. The Browse For Folder dialog displays folders only, not
.chkor.logfiles; select the folder containing them. You can also paste the path directly into the field. - Under Temporary File Path (*.idx, *.dat, *.lkp), enter the prepared temporary directory.
- Optionally restrict the display under Mailbox Criteria to specific mailboxes. For databases with many mailboxes, this speeds up subsequent work.
- Select Next.
On the Now Processing Data File page, PowerControls processes the database in three steps:
- Pre-scan of the log files (integrity check)
- Replay of the log files
- Hashing of the EDB (building the folder hierarchy)
If the No log files found message appears, the Log File Path field usually still contains the EDB folder. In this case, cancel with Cancel and correct the path. Clicking OK opens the database without logs; for a database in Dirty Shutdown state, the final transactions before the backup will then be missing. For Clean Shutdown, OK is safe.
If log files are damaged or missing, PowerControls also offers to continue without logs. This is useful for an initial review. For a complete restore, it is better to obtain the missing logs from the backup. The next time you open the same EDB, PowerControls uses the index files already created, making the process significantly faster.
Connect a target
After the source, the wizard asks for the target on the Target Selection page. Later, add targets through File > Open\Create Target. The source and target areas can contain multiple databases, PST files, and mailboxes at the same time.
| Target | Use |
|---|---|
| Outlook Data File (*.pst) | Export for users, audit, or import into Exchange Online |
| Single Mailbox (on-premise) | Restore to an individual mailbox on Exchange On-Premises |
| All Mailboxes (on-premise) | Restore multiple or all mailboxes in an organization, optionally creating mailboxes |
| Specified Mailboxes (on-premise) | As above, filtered by Hosted Organization or Address Book Policy |
| Single Mailbox (Office 365) | Restore to an Exchange Online mailbox through EWS with Modern Authentication |
Exchange On-Premises
For Single Mailbox (on-premise), enter the complete email address of the target mailbox and leave Connect using Autodiscover enabled. Since Exchange 2013, direct RPC access is no longer possible: PowerControls connects through Outlook Anywhere or MAPI over HTTP using settings from Autodiscover. If the restore computer is not a domain member, PowerControls prompts for the username, password, and domain of an account with full access to the target mailbox.
For All Mailboxes (on-premise), specify a Domain Controller and any Exchange server version 2013 or later, or leave the server name blank. PowerControls opens all mailboxes in the AD of the specified DC that are accessible to the signed-in account.
The restore account requires Full Access to every target mailbox. For a time-limited restore, you can assign the permission specifically and remove it afterward:
$recht = @{
Identity = "anna.muster@example.com"
User = "EXAMPLE\svc-restore"
AccessRights = "FullAccess"
AutoMapping = $false
}
Add-MailboxPermission @recht
After the restore, remove the permission with Remove-MailboxPermission and the same values for Identity, User, and AccessRights.
Exchange Online
For Single Mailbox (Office 365), PowerControls connects to Exchange Web Services (EWS) using OAuth. This requires an app registration in Entra ID:
- In the Entra Admin Center, under App registrations, create a new registration, for example
PowerControls-Restore. - Under Authentication, add the Mobile and desktop applications platform with the redirect URI
https://login.microsoftonline.com/common/oauth2/nativeclient. - Under API permissions, add the Application Permission Office 365 Exchange Online > full_access_as_app and grant admin consent.
- Under Certificates & secrets, create a short-lived client secret.
- Enter the Application (client) ID, Directory (tenant) ID, and secret value in PowerControls under Client ID, Tenant ID, and Client Secret.
full_access_as_app allows the app to access every mailbox in the tenant. Restrict access with an Application Access Policy to a mail-enabled security group that contains only the target mailboxes:
$policy = @{
AppId = "<Application-ID>"
PolicyScopeGroupId = "restore-ziele@example.com"
AccessRight = "RestrictAccess"
Description = "PowerControls Restore"
}
New-ApplicationAccessPolicy @policy
Use Test-ApplicationAccessPolicy -AppId "<Application-ID>" -Identity "anna.muster@example.com" to verify that the policy is applied. After completing the restore, delete the client secret or the entire app registration.
Note the EWS shutdown in Exchange Online
Microsoft is gradually disabling EWS in Exchange Online. Since October 10, 2026, the following applies in tenants with EWSEnabled = True: Only apps whose app ID is in EwsAllowedAppIDs may use EWS. If the PowerControls app ID is missing from this list, the connection to the Office 365 target fails. The change can take up to 24 hours to take effect.
The list cannot be updated incrementally. Set-OrganizationConfig overwrites the entire value. Therefore, first read the existing list and write it back with the addition:
$aktuell = Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy |
Select-Object -ExpandProperty EwsAllowedAppIDs
$neu = "<Application-ID>"
$liste = @($aktuell, $neu) | Where-Object { $_ }
Set-OrganizationConfig -EwsAllowedAppIDs ($liste -join ",")
According to Message Center MC1485116, the shutdown is expected to be completed by early July 2027. After that, direct restores to Exchange Online through EWS will no longer be possible unless Ontrack provides a Graph-based connection by then. PST remains the alternative: export to a PST in PowerControls and import the PST into the mailbox through Purview Import or Outlook.
Search for items
For individual emails, searching is faster than browsing folders. In the source area, select the database, a mailbox, or a folder and open the search through Search on the toolbar. The Find in Source window offers:
- Search for words and Exclude words for search terms and exclusions
- Search In with Message Subject, Message Body, Attachment File Name(s), and Attachment Text
- Date filters for Received, Sent, or Due with After and Before
Copy found items directly from the results list. Under Edit > Preferences > General, Check for duplicate messages during search suppresses duplicate results from multiple sources. The option slows down searching.
Restore
The restore itself is a copy-and-paste operation from the source to the target area. The key distinction is between Paste and Paste Special:
| Copied item | Paste using | Result |
|---|---|---|
| Individual emails | Paste (Ctrl+V) | Emails are inserted into the selected target folder without subfolders |
| Individual emails | Paste Special (Ctrl+Y) | The original folder structure is recreated in the target |
| Folder, mailbox, entire EDB | Paste or drag and drop | Folder structure is always preserved |
For results from Find in Source, always use Paste Special: results usually come from different folders, and without Paste Special, their association is lost.
Typical scenarios:
- Recover a user’s deleted folder: Copy the folder in the source area, then paste it onto the mailbox or into a subfolder such as
Restore 2026-11-27in the target area. - Restore an entire mailbox: Copy the mailbox in the source area and paste it onto the target mailbox. PowerControls creates a folder named after the mailbox if it does not exist.
- Copy back a complete database: Drag the EDB onto the Exchange root node of the target. PowerControls maps mailboxes by name. With Allow mailbox creation during copy under Edit > Preferences > Target Options, it creates missing mailboxes; without this option, it skips them.
A dedicated restore folder in the target mailbox is recommended: the user can clearly see which items come from the backup, and duplicates in the Inbox are avoided. If the Recoverable Items folder is copied, PowerControls renames it with the date, for example Recoverable Items (27.11.2026).
After every copy operation, the Copy Progress window opens with the number of items, errors, and mailboxes that could or could not be connected. For a restore to the server root node, PowerControls processes one mailbox at a time. Only this window shows whether all mailboxes were transferred. Save the report through Save for documentation.
With Check for duplicate messages during copy and export in the general settings, PowerControls skips emails already present in the target folder. This is useful for repeated restores to the same folder, but it slows down the copy operation.
Export to PST
For handoffs outside Exchange, export is the appropriate function. Right-click a mailbox or folder, then select Export. In the Export Mailbox or Export Folder window, choose PST, MSG, or TXT under Format, optionally with Export Subfolders.
- Under Edit > Preferences > Target Options, enable Create Unicode PSTs. Older ANSI-format PSTs are limited to 2 GB.
- Limit maximum PST file size automatically splits large exports into multiple files (
_001.pst,_002.pstand so on). This is helpful for later import into Exchange Online. - For ANSI PSTs, PowerControls automatically creates subsequent folders such as
Inbox (1)after 16,383 items per folder.
If Outlook reports “File access is denied” when opening the exported PST, Outlook lacks write access to the file. Outlook requires it even for read-only access. Common causes include:
- The PST is still open in PowerControls. PowerControls keeps target PSTs open through MAPI until they are closed with Close Store or the application is exited.
- PowerControls was run under a different account. The file then belongs to that account. Check it with
icaclsand grant the Outlook user Modify permissions. - Read-only attribute. Remove it with
attrib -R <Datei>.
icacls "D:\Restore\anna.pst"
icacls "D:\Restore" /grant "EXAMPLE\anna.muster:(OI)(CI)M" /T
If the target is a mailbox anyway, avoid the detour through PST: copy folders directly from the source to the target mailbox as described in the Restore section.
Command line
Recurring or large exports can be run from the command line. The following example copies a mailbox Inbox including subfolders to a PST and writes a report:
$argumente = @(
"-copy", "-r", "-o", "D:\Restore\report.txt"
"D:\Restore\DB01\DB01.edb"
"-l", "D:\Restore\DB01\Logs"
"-t", "D:\Restore\Temp"
"anna.muster\Inbox"
"D:\Restore\anna.pst", '$ROOT'
)
powercontrols @argumente
With -d:received -a:<mm/dd/yyyy> -b:<mm/dd/yyyy>, limit the operation to a date range; with -list, list the database mailboxes in advance. powercontrols -h shows the complete syntax.
After the restore
- Store the report from Copy Progress or the command line.
- Remove Full Access permissions and the Application Access Policy, and delete the client secret.
- Delete the temporary index files and the EDB working copy. The copy contains all emails from every mailbox in the database.
- For Exchange Online, remove the app ID from
EwsAllowedAppIDsagain if PowerControls is not used regularly.
Comments
Comments are loaded from GitHub / Giscus.