Your setup and migration steps sound essentially correct—your new Windows Server 2019 (DC2) holds all FSMO roles, and it's handling AD operations while both DCs are online. However, when you disconnect your original Windows Server 2012 R2 DC (DC1), Active Directory "stops working," and commands like netdom query fsmo fail due to unavailable RPC servers. Let's break down what might be happening:
Likely Issues
1. DNS Configuration
Even when FSMO roles are moved, every DC and client must use working DNS servers that can resolve domain names and locate services within the domain. If DC2 is not set up as its own primary DNS server and/or DC1 was still being used as a DNS server, removing DC1 will immediately break AD resolution.
- Check that DC2 is running the DNS Server role.
- Ensure DC2 points to itself (127.0.0.1 or its own IP) for primary DNS. If it points to DC1 (which you are disconnecting), this will cause lookups to fail.
- Check the DNS zones—make sure you have AD-integrated zones, and that DC2 holds a writable copy.
- On DC2, run ipconfig /all and see which DNS servers are listed.
2. Global Catalog (GC)
DC1 may have been the only Global Catalog server, which is required for many AD queries. If DC2 does not have the GC role enabled, many AD functions will break when DC1 is offline.
- Open "Active Directory Sites and Services" → expand your site → Servers → DC2 → NTDS Settings → right-click → Properties. Check "Global Catalog".
- Wait for the change to replicate if you just enabled it.
3. Replication
If replication between DC1 and DC2 was incomplete, some critical directory partitions may be missing on DC2. Use repadmin /replsummary and repadmin /showrepl to check replication health.
4. DNS Scavenging/Zone Transfers
If your AD-integrated DNS zones weren't replicating properly to DC2 (especially if you’re using delegation/subzones), you might have a DNS lookup failure when DC1 goes offline.
5. Firewall or Service Issues
Make sure DC2’s firewall isn’t blocking RPC/LDAP/AD ports, and ensure all relevant AD services are started.
Diagnostics Checklist
- Ensure DC2 is listed as a domain controller in "Active Directory Users and Computers" under Domain Controllers.
- Ensure DC2 is set as a DNS server for itself and for all clients.
- Confirm DC2 holds all FSMO roles: netdom query fsmo.
- Check DC2 is also a Global Catalog server.
- Confirm replication completed: repadmin /replsummary.
- Test DNS: nslookup _ldap._tcp.dc._msdcs.<yourdomain> should return DC2’s IP if DC1 is offline.
- Try dcdiag and see if there are failures.
Next Steps
I recommend:
- Double-check DNS settings and make DC2 its own DNS primary (and secondary, if it's the only DC/DNS left).
- Make sure “Global Catalog” is checked on DC2.
- Ensure all AD-integrated zones are present on DC2.
- Test services by shutting down DC1 only after confirming all above steps.
If you provide exact dcdiag /v, repadmin /showrepl, or DNS screenshots/outputs, I can give more step-by-step fixes.
Let me know what you find, or if you need help with any of the diagnostic commands!