Skip to content

About

Deploys Exchange Server 2019 or Subscription Edition next to Exchange 2016 or 2019 servers from one plan file: a preview of every change, checked steps, a WPF console and a command line. PowerShell.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Exchange 2013/2016 to 2019 Migration: deploys Exchange Server 2019 next to the legacy servers, moves every mailbox in controlled batches and proves the cut-over

How it works  ·  The 26 steps  ·  Migration runbook  ·  Reports  ·  Quick start  ·  User guide  ·  Developer guide

Important

Files downloaded from the Internet may be blocked by Windows and fail to run. Before using this project, unblock every file in the downloaded folder:

Get-ChildItem "C:\Chemin\Du\Dossier" -Recurse -File -Force | Unblock-File

Replace the example path with the folder where you downloaded or extracted this project.

Why

Moving an organisation from Exchange 2013/2016 to Exchange 2019 means dozens of settings on every new server, a DAG, databases and copies, then weeks of mailbox moves, and finally the proof that no client still uses the old servers. Done by hand, each of these actions is a risk for the servers in production. This framework runs them as 26 numbered steps, each one able to read the current state, simulate the change and apply it, and it never touches the legacy servers by accident.

Design principles: never touch a legacy server by accident, idempotent, resumable, readable

How it works

Configs are read by Deploy-Exchange2019.ps1, which runs the selected steps; the steps act on the Exchange organisation in Inventory, Simulate or Apply mode and write the reports

Each step is one file, Steps\StepNN-Name.ps1, holding one function, Invoke-Step. The step discovers its targets, then calls Invoke-Action once per atomic action (one server, one virtual directory, one database...). Invoke-Action decides what to do according to the mode and writes the report row, with the value before and after.

The 26 steps

Phase 1, steps 01 to 07: prepare the platform. Phase 2, steps 08 to 11: build high availability. Phase 3, steps 12 to 17: configure runtime services. Phase 4, steps 18 to 26: migrate, validate and clean up, manual only
  • Steps 01 to 17 build the Exchange 2019 platform: they can run together, -Step All, phase by phase.
  • Steps 18 to 26 migrate and validate: they are manual only. -Step All -Mode Apply never runs them; each one is called by number or by name.
  • Exchange 2019 only: targets are discovered in Active Directory and filtered on Version 15.2*, Edge excluded. Only Steps 15 and 25 touch the legacy servers, and they say so in red.

Migration runbook

Step 18 system mailboxes, Step 19 batch plan, Step 20 batches created and synced, Step 21 completion, Steps 22 to 24 cleanup, quotas and health, Steps 26, 25 and 26 legacy traffic, SCP and final check; batch lifecycle from Created to Completed

The proof of the cut-over. Step 26 reads the IIS and SMTP logs of every server and counts the traffic of real users per Exchange version. Everything technical is excluded first: monitoring probes (AMProbe, HealthMailbox, Managed Availability), system and arbitration mailboxes, IIS pool and built-in accounts, anonymous requests, NTLM challenges, load-balancer checks, and SMTP sessions without a real sender (<>, postmaster, system mailboxes). No legacy traffic left means the old servers can be decommissioned. The rules are in the configuration and in Annex B of the guide.

Reports

Console of a run
Console · title card, one line per action with its status, summary card
HTML run report
Run report · one row per action, before and after, search and status filters
Migration status page
Migration status · live follow of the batches and move requests (Steps 20 and 21)
Protocol-log analysis
Protocol-log analysis · real-user IIS and SMTP traffic, legacy versus 2019 (Step 26)

Every run also writes one CSV per step, a global CSV, a run log and one transcript per step in Reports\<run>\. All the reports are self-contained HTML files, with a light and a dark theme.

Requirements

Item Requirement
Server Windows Server 2019 or 2022
PowerShell Windows PowerShell 5.1 — Exchange Management Shell 2019, local or through WinRM
Permissions Exchange Organization Management, local administrator on the Exchange 2019 servers, rights on Active Directory for Steps 07 and 15
Network WinRM (5985) to the Exchange 2019 servers
Console Windows Terminal recommended (emoji and colours); the classic console works too

Quick start

git clone https://github.com/Nico77600/Exchange2013-2016-to-2019-Migration.git Deploy-Exchange2019
cd Deploy-Exchange2019\package
notepad .\Configs\Deployment.config.psd1                     # URLs, domain, product key, databases...
notepad .\Configs\DiskLayout.csv ; notepad .\Configs\DAGInfo.csv

.\Deploy-Exchange2019.ps1 -Step List                         # the 26 steps
.\Deploy-Exchange2019.ps1 -Step All -Mode Inventory          # current state, changes nothing
.\Deploy-Exchange2019.ps1 -Step 1,2,3 -Mode Simulate         # preview
.\Deploy-Exchange2019.ps1 -Step 1,2,3 -Mode Apply            # apply (asks YES)
.\Deploy-Exchange2019.ps1 -Step 20 -Follow -FollowInterval 15   # follow the migration batches

The environment values of the configuration are empty in this repository; DiskLayout.csv and DAGInfo.csv hold contoso examples. The Reports\ folder (run output: server, database and mailbox names) is never committed.

Documentation

The package folder holds exactly the files needed to run, with both guides; the release zip built by .\tools\New-MigrationPackage.ps1 contains the same run-time files with the HTML guides.

Guide Content
User guide Prerequisites, one-time setup, the migration runbook step by step with what to check after each, the reports, troubleshooting.
Developer guide Everything else: the background, installation, every configuration key, the 26 steps one by one, the runbook, the reports, the internals, troubleshooting and the protocol-log filtering rules.

Both guides also exist as a single HTML file with a light and a dark theme (package/Docs/Exchange2019Migration-UserGuide.html, package/Docs/Exchange2019Migration-Guide.html): download them and open them locally, or use the copies in the release zip.

Tests

Invoke-Pester -Path .\tests      # Pester 5, no Exchange, no Active Directory

License

MIT. Configs\HealthChecker.ps1 is the Microsoft Exchange HealthChecker script, under its own MIT license.

Disclaimer

This Script is a Personal project. It's provided "AS-IS". It's not an official Microsoft product so no support can be expected from Microsoft.

As any scripts you must read carefully the documentation and test it first in a Test environment before any run in Production.

About

Deploys Exchange Server 2019 or Subscription Edition next to Exchange 2016 or 2019 servers from one plan file: a preview of every change, checked steps, a WPF console and a command line. PowerShell.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages