PowerEdge: Windows Server SYSVOL share is absent from all domain controllers
Summary:
If the SYSVOL share is absent from every domain controller (DC) in an Active Directory (AD) domain, AD management consoles may give an error like this:
"An Active Directory domain
controller (AD DC) for the domain could not be contacted."
If Distributed File System Replication (DFSR) is used to replicate SYSVOL data, the issue appears difficult to resolve. An authoritative sync of DFSR cannot be performed without the ADSI Edit console. Fortunately, the issue can be resolved by modifying the registry on the DC with the authoritative copy of SYSVOL. A different registry modification is then performed on the other DCs.
...
Symptoms
No domain controllers (DCs) in the domain have a SYSVOL share.
Attempting to join a machine to the domain gives the error "An Active Directory domain controller (AD DC) for the domain <domain> could not be contacted."
Active Directory management consoles such as AD Users and Computers may report the same error.
The Group Policy Management Console reports errors indicating that Group Policy objects (GPOs) are missing.
The DFS Replication event logs of all DCs contain error 4612, with the following description:
The DFS Replication service initialized SYSVOL at local path C:\Windows\SYSVOL\domain and is waiting to perform initial replication. The replicated folder will remain in the initial synchronization state until it has replicated with its partner [server]. If the server was in the process of being promoted to a domain controller, the domain controller will not advertise and function as a domain controller until this issue is resolved. [The rest of the event description has been omitted here.]
The server referenced in the error description above is a former DC that has been demoted.
Cause
Resolution
First, locate the most up-to-date copy of the SYSVOL data. This likely searching current and former domain controllers for the most recent versions of the Group Policy Template files, which are located at %systemroot%\SYSVOL\domain\Policies. It may be necessary to restore this data from a recent backup of a demoted DC, if such a backup is available. (Restore it to a temporary location created for this purpose.)
Stop the DFS Replication service on all DCs. Next, choose a DC to be the authoritative SYSVOL source. (In this case, it does not matter which DC is chosen.) Copy the Policies and scripts folders from the SYSVOL data to %systemroot%\SYSVOL\domain on the authoritative DC.
Launch the Registry Editor (regedit) and browse to HKLM\System\CurrentControlSet\Services\DFSR\Parameters. Right-click the Sysvols subkey and select Export. Save the file in an accessible location. (This file most likely will not be needed, but it serves as a backup of this registry key in case something goes wrong.) Close the Registry Editor.
Copy the following text into Notepad on that DC:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DFSR\Parameters\SysVols\Promoting SysVols] "Sysvol Information is Committed"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\DFSR\Parameters\SysVols\Promoting SysVols\DOMAINNAME] "Is Primary"=dword:00000001 "Command"="DcPromo" "Parent Computer"="" "Replicated Folder Name"="DOMAINNAME" "Replicated Folder Root"="C:\\Windows\\SYSVOL\\Domain" "Replicated Folder Root Set"="C:\\Windows\\SYSVOL\\sysvol\\DOMAINNAME" "Replicated Folder Stage"="C:\\Windows\\SYSVOL\\staging areas\\DOMAINNAME" "Replication Group Name"="DOMAINNAME" "Replication Group Type"="Domain"
From the Edit menu in Notepad, select Replace… and replace all instances of DOMAINNAME with the name of the AD domain (for example, ad.mydomain.com). Ensure that the domain name is correct. If necessary, adjust the file paths to reflect the location of the SYSVOL folder on the server. Save the file as Promoting_Sysvols.reg. Be sure to select All Files (*.*) from the Save as type: dropdown list, so that a .txt extension is not appended to the file name.
Right-click the Promoting_Sysvols.reg file and select Merge. Click Yes when prompted. The data in the file should be successfully merged with the DC's registry. Click OK.
Start the DFS Replication service on that DC only. Launch Event Viewer and refresh the DFS Replication event log until event 4602 appears. SYSVOL replication on that DC is now functional, and the output of the net share command should now show SYSVOL and NETLOGON shares.
Do the following on every other DC in the domain:
- Launch Registry Editor and browse to
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/DFSR/Parameters/SysVols/Seeding SysVols/[Domain name]. - Locate the Parent Computer setting inside this key and set its value to the DNS name of the authoritative DC.
- Close the Registry Editor and start the DFS Replication service.
- Launch Event Viewer and refresh the DFS Replication event log until event 4604 appears, indicating that initial replication has completed and
SYSVOLhas been initialized. - Run
net shareto confirm the presence ofSYSVOLandNETLOGONshares.