Homelab/Windows server
Fix exchange server to new forest
Fix exchange server to new forest
Edit on GitHub
Context
- Exchange 2019 CU15 server stopped working after:
- VLAN move
- New IP
- AD forest functional level raised to 2025
- DNS / Sites not fully updated
Symptoms:
- “Applying computer settings” hang after restore
- Exchange services couldn’t start
- ECP/OWA unreachable
- “Topology Provider couldn’t find AD Topology service”
- WinRM remoting errors “input XML syntax error”
Step 1 — Fix DNS and Replication
-
Verified DNS records for DC and GC:
- A records correct
- SRV records needed (e.g.
_ldap._tcp.dc._msdcs)
-
On all DCs:
repadmin /syncall /AeD
repadmin /replsummary
ipconfig /registerdns- On Exchange server:
ipconfig /flushdns
ipconfig /registerdnsOutcome: DNS replication ensured all DCs have consistent DNS/AD info.
Step 2 — Fix Active Directory Site/Subnet Mapping
-
In Active Directory Sites and Services:
- Created a Subnet matching the Exchange VM’s VLAN
- Assigned it to the correct AD Site containing reachable GC/DC
(SITE-B in your case)
-
Forced AD replication:
repadmin /syncall /AeD -
Outcome: Server now maps to a site; Exchange can locate local Global Catalog.
Step 3 — Rebind Netlogon / Site Info
- On the Exchange VM:
net stop netlogon net start netlogon - Verify site membership:
nltest /dsgetsite
Outcome: Server correctly identifies site based on subnet.
Step 4 — Restart Exchange AD Topology Service
- On Exchange:
net stop MSExchangeADTopology net start MSExchangeADTopology - Checked Event Logs for DC selection & connection success
Outcome: Topology service was able to find AD, allowing IIS and other Exchange services to operate.
Step 5 — Fix WinRM / Remote PowerShell Errors
- Ensured WinRM is configured:
winrm quickconfig - Enabled proper authentication:
winrm set winrm/config/service/auth @{Kerberos="true";Negotiate="true"} - Confirmed DNS resolution for
exchange.greenhuang.local
Outcome: Exchange Management Shell can connect (no more “input XML syntax” errors).
Step 6 — Validation
✔ From Exchange server:
nslookup _ldap._tcp.gc._msdcs.greenhuang.local nltest /dsgetdc:greenhuang.local /GC
✔ Make sure:
- DC/GC SRV records resolve
- Exchange DNS server list points only to valid DNS/DCs
- Exchange can log into ECP/OWA without negotiate errors
- Exchange Management Shell opens without remoting errors
Key Lessons / Root Causes
- Exchange relies on AD Sites/Subnets, DNS SRV records, and Global Catalog access.
- IP/VLAN changes without updating AD Sites cause AD Topology discovery failures.
- WinRM remote PowerShell depends on correct SSL certificate + SPN + DNS name resolution + Kerberos.
- Updating certificates after server name/IP changes is essential for Exchange web services and EMS.