SYSVOL and NETLOGON folders weren’t syncing between domain controllers or the folders did not exist at the secondary DC.
If you have this issue, users that authenticate at the DC that don´t have the data of SYSVOL and NETLOGON will not receive the GPO policy and will receive errors when you run the GPUPDATE command.
To fix the sync between DC follow the instructions below:
- Logon to your primary Domain Controller and Stop the DFS Replication service.
START->ADMINISTRATIVE TOOLS -> SERVICES - Open ADSI EDIT and connect to the Default Naming Context
- Expand ADSIEDT until the CN=SYSVOL Subscription of the Primary Domain Controller
CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=PRIMARY-DOMAIN-CONTROLLER,OU=Domain Controllers,DC=DOMAIN.LOCAL - Edit the attribute of the two entries:
- msDFSR-Enabled=FALSE
- msDFSR-options=1
- msDFSR-Enabled=FALSE
- Now access the secondary DC (or others that you may have) and change from ADSIEDIT (steps 2-4):
CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=SECONDARY-DOMAIN-CONTROLLER,OU=Domain Controllers,DC=DOMAIN.LOCAL- msDFSR-Enabled=False
- msDFSR-Enabled=False
- Back to the Primary Domain Controller, open PowerShell as admin, and force the replication with the command bellow
repadmin /syncall PRIMARY-DC-NAME /APed
Be sure the command terminates with no errors
- Start DFS Replication service back on Primary Domain Controller
- Now open Eventvwr and check the DFS Replication event with ID 4114
- From Primary Domain Controller, open again ADSIT and change the msDFSR-Enabled to TRUE
CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=PRIMARY-DOMAIN-CONTROLLER,OU=Domain Controllers,DC=DOMAIN.LOCAL - Open Command one more time and run
DFSRDIAG POLLAD
- REPEAT STEP 6
Back to the Primary Domain Controller, open PowerShell as admin, and force the replication with the command bellowrepadmin /syncall PRIMARY-DC-NAME /APed
- Open Eventvwr and check the DFS Replication event with ID 4602 (it could take some time to show up)
- Now access the secondary DC (or others that you may have) and change from ADSIEDIT (steps 2-4):
CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,CN=SECONDARY-DOMAIN-CONTROLLER,OU=Domain Controllers,DC=DOMAIN.LOCAL- msDFSR-Enabled=True
- msDFSR-Enabled=True
- Open Command one more time and run
DFSRDIAG POLLAD
- Wait a few minutes and access each DC:
- Access the \\localhost
- You should see NETLOGON and SYSVOL folder
- Access Eventvwr you should see event ID 4114
- Access the \\localhost