What can look wrong after a rename, and what to do about it.
dcdiag reports a DFSREvent failure
This means the service that copies SYSVOL logged a warning in the last 24 hours. A restart causes one: event 5014 when the partner goes away, then 5004 when it reconnects. Prove SYSVOL is copying:
$name = "repl-test-$(Get-Date -Format HHmmss).txt" 'test' | Set-Content "\\CON-DC-01\SYSVOL\ad.contoso.com\scripts\$name" Start-Sleep -Seconds 45 "Arrived on CON-DC-02: " + (Test-Path "\\CON-DC-02\SYSVOL\ad.contoso.com\scripts\$name") Remove-Item "\\CON-DC-01\SYSVOL\ad.contoso.com\scripts\$name"
If it says True, SYSVOL is healthy and the warning will age out.
dcdiag reports a SystemLog failure
dcdiag flags any error in the System log from the last hour. Look at the time of the event. If it is from before you started, it has nothing to do with the rename.
Sign-in is refused straight after the restart
The DC needs a minute to start its services. Wait and try again. If you use an account in Protected Users, it can only sign in once the DC is fully up.
repadmin still shows an old name
Each DC keeps a label for its partner and refreshes it at the next replication. Push a sync and look again:
repadmin /syncall /AdeP | Select-String 'error|terminated' repadmin /replsummary
A command fails with the server's name
Check whether you typed the virtual machine name or the Windows name. Before a rename they can differ. hostname on the server shows the Windows name.
Something still uses the old name
After the DNS tidy-up the old names no longer resolve, so anything still using them fails. Change it to the new name. Do not put the old DNS record back.
You need to go back
Rename back the same way: add the old name, make it primary, restart, remove the new name. One DC at a time.


