~/dfsr not replicating certain files (the temporary attribute)
A file in SYSVOL or a DFS share that won't replicate, with no errors logged? Check the temporary attribute and the replication file filters.
Updated November 2026. The original issue was with FRS, which is long deprecated: newer Windows Server versions can’t use it for SYSVOL, so domains should have migrated to DFSR. The same behaviour applies to DFSR, so the fix is unchanged.
The problem
I added a JPEG to the SYSVOL share for a Group Policy Preferences file copy. A week later, clients still weren’t getting it. The file was only on the domain controller I’d copied it to; the replication logs showed no errors, and a test text file replicated straight away.
The cause: the image had been created with the temporary attribute set. DFS Replication (and FRS before it) deliberately skips files marked temporary, without logging an error.
Find files with the temporary attribute
The attrib command doesn’t show it. Use PowerShell (the temporary attribute is 0x100):
Get-ChildItem "C:\Windows\SYSVOL\domain\Policies" -Recurse -File |
Where-Object { $_.Attributes -band [IO.FileAttributes]::Temporary } |
Select-Object FullName, Attributes
For a single file, fsutil usn readdata "C:\path\file.jpg" also shows the attributes.
Clear it
Get-ChildItem "C:\Windows\SYSVOL\domain\Policies" -Recurse -File |
Where-Object { $_.Attributes -band [IO.FileAttributes]::Temporary } |
ForEach-Object { $_.Attributes = $_.Attributes -band (-bnot [IO.FileAttributes]::Temporary) }
Once the attribute is cleared, DFSR picks up the change and replicates the file.
The other common cause: file filters
DFSR also skips files matching the replicated folder’s file filter, which by default is ~*, *.bak, *.tmp. Check it with:
Get-DfsReplicatedFolder | Select-Object GroupName, FolderName, FileNameToExclude
Checking replication health
Get-DfsrBacklog -SourceComputerName DC01 -DestinationComputerName DC02 -GroupName "Domain System Volume" -FolderName "SYSVOL Share"
A backlog that keeps growing means a wider replication problem than one file.