I have made 3 attempts to install a second DC using windows server 2022 core and each time I end up with dcdiag errors similar to what you see below, where the new server 2022 core deployment would be the named server.
server DCX-XXX.XXX.com could not be queried, error 0x6ba "The RPC server is unavailable."
so I began troubleshooting and started with disabling the firewall AND changing the registry key listed below.
- Browse to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters
- Set SysVolReady from 0 to 1 after that I get this error in dcdiag /a
Event String: The processing of Group Policy failed. Windows attempted to read the file \\XXX.com\sysvol\XXX.com\Policies\{31B2F340-016D-11D2-945F-00C04FB984F9}\gpt.ini from a domain controller and was not successful.
So I have come to the conclusion that using the latest windows server 2022 core build and promoting it to a domain controller is not seemless and requires remediation. I am reaching out to the community to determine if this is a known issue and if anyone has any suggestions. At this point I am going to deploy the firewall after opening all of the AD required ports. I dont think I should have to use the registry to enable sysvol and manually open the firewall ports when installing a clean from scratch DC.
I installed the DC by using the command listed below.
Also found that the policies folder was missing from the newly deployed Core installation.
Install-ADDSDomainController -DomainName 'xxx' -Credential (Get-Credential "AD\your-domain-admin") -InstallDns:$true