daknetworks.com

You are here: Blog Fix Domain Controller Sync | Fix SYSVOL Sync

Fix Domain Controller Sync | Fix SYSVOL Sync

(Get-ADDomainController -Filter *).Name |Foreach-Object { repadmin /syncall $_ (Get-ADDomain).DistinguishedName /AdeP }
Get-ADReplicationPartnerMetadata -Target "$env:userdnsdomain" -Scope Domain | Select-Object Server, LastReplicationSuccess

DFS Replication is not working.

Set the replication to a higher number of days:
wmic /namespace:\\root\microsoftdfs path DfsrMachineConfig set MaxOfflineTimeInDays=500

Then follow:
https://www.youtube.com/watch?v=UWF-pVr1JHg

Stop the DFSR service on all DC servers:
Invoke-command server-1, server2 -scriptblock {stop-service DFSR}

ASDIEdit:
set all servers to FALSE
set primary server to 1

Sync the servers:
repadmin /syncall server-1 /APed

ASDIEdit:
set primary server to TRUE

Sync the servers:
repadmin /syncall server-1 /APed

Start the DFSR service on all DC servers:
Invoke-command server-1, server2 -scriptblock {start-service DFSR}

Set the Days back to the default of 60:
wmic /namespace:\\root\microsoftdfs path DfsrMachineConfig set MaxOfflineTimeInDays=60

https://www.powershellgallery.com/packages/ADEssentials/0.0.149

Contact Dak Networks

We are not taking on new clients at this time.