Forum Discussion
Demoting DC Windows Server 2019
Active Directory stores the DNS servers hosting a zone in the msDNS-ServerName attribute of the dnsZone object. If XYDC01 is the last registered server for this zone, you’ll receive a warning during demotion. Even if the zone physically exists on other DCs, you’ll encounter this error if it’s not reflected in the metadata.
To check which servers are hosting the zone on XYDC01, run:
Get-DnsServerZone -Name "enterpriseregistration.jens.be" | Select-Object -ExpandProperty ZoneType
Alternatively, use ADSI Edit and navigate to:
CN=MicrosoftDNS,DC=ForestDnsZones,DC=jens,DC=beIf the msDNS-ServerName attribute of the enterpriseregistration.jens.be object only lists XYDC01, it means the other DCs are not visible in the metadata.
Make the zone visible on other DCs
On a DC other than XYDC01, remove and re-add the zone to refresh the metadata:
Remove-DnsServerZone -Name "enterpriseregistration.jens.be"
Add-DnsServerPrimaryZone -Name "enterpriseregistration.jens.be" -ReplicationScope ForestThis does not recreate the zone. It simply updates the metadata, since the zone is Active Directory-integrated.