Tuesday, 28 August 2012

DFS Replication: Not replicating some PDF files

DFS Replication not replicating some PDF files - issue likely to be caused by PDF application saving the file with a TEMP attribute.

The issue is explained in more detail here:


This can be caused by PDF Complete Special Edition, preinstalled on HP desktops.

To fix, start by using the following PowerShell command to scan the replicated folder to see affected files:

Get-ChildItem "X:\Directory" -Recurse | ForEach-Object -Process {if(($_.attributes -band 0x100) -eq 0x100) {Write-Output $_}}

Save a copy of the output to txt file using the following PowerShell command:

Get-ChildItem "X:\Directory" -Recurse | ForEach-Object -Process {if(($_.attributes -band 0x100) -eq 0x100) {Write-Output $_}} | Out-File X:\file.txt

Clear attribute on all affected files using the following PowerShell command:

Get-ChildItem X:\Directory -Recurse | ForEach-Object -Process {if (($_.attributes -band 0x100) -eq 0x100) {$_.attributes = ($_.attributes -band 0xFEFF)}}

No comments:

Post a comment