Home > Microsoft, Windows > Thumbs.db locked DFSR

Thumbs.db locked DFSR


I had one problem with DFSR. I had two servers. Server01 in located in Location01 and Server02 located in Location02. There is DFSR Replication Group configured between those two servers. Replication worked in one direction – from Server01 to Server02, but it didn’t work from Server02 to Server01.


When I looked into backlog of Server02 using command:

dfsrdiag backlog /rgname:Rep_Group /rfname:Rep_Folder /SendingMember:SERVER02 /Receivingmember:SERVER01

I found out that there is lots of files stuck in queue – backlog. All of them were called Thumbs.db. These files are used by Windows Explorer to store thumbnails of files in directories.


I fixed issue by clearing conflict directory using following commands. I had to find out GUID for my replication folder:

wmic /namespace:\\root\microsoftdfs path dfsrreplicatedfolderconfig get replicatedfolderguid,replicatedfoldername

And then run procedure to clear conflict directory:

wmic /namespace:\\root\microsoftdfs path dfsrreplicatedfolderinfo where “replicatedfolderguid=’GUID’” call cleanupconflictdirectory

After directory clearance replication stared to work.

But I wanted to prohibit to create Thumbs.db files on network shares. I don’t know about any setting that would disable it on client machines so I had to restrict creation on servers. I decided to create File Screen to prohibit Thumbs.db creation on servers.

1. On server go to Server Manager — Roles — File Services — Share and Storage Management — File Server Resource Manager — File Screening Management:FS01

2. Right-click on File Groups and create new File Group:

– Name it

– Include file “Thumbs.db” into list


3. Right-click on File Screen Templates and create new screen template:

– Name it

– Make sure you have selected Active screening

– Select new created group “Thumbs.db”


4. Enable file screening on directory. Right-click on File Screens and create file screen.

– Select Path where File Screen should apply

– Select new created File Screen Template


And screen file is sucessfully set.

One more step I took was delete all Thumbs.db files from server’s disk. I run following powershell command in share directory:

Get-ChildItem -Force -Recurse | where { $_.Name -like “Thumbs.db”  } | Remove-Item -Force

And that’s all for today play with DFSR.

  1. Michal_F
    January 18th, 2016 at 10:06 | #1

    Not tested, but there is GPO for windows clients (vista +) that disable creation od thumbs.db
    User Config/Admin Templates/Windows Components/Windows Explorer ->
    “Turn off the caching of thumbnails in hidden thumbs.db files”

    Or something like this …

    Key: HKCU\Software\Policies\Microsoft\Windows\Explorer
    Value: DisableThumbsDBOnNetworkFolders

  2. January 18th, 2016 at 10:16 | #2

    Question is if you want to disable Thimbs.db or make just exception on DFS Replication 🙂

  3. Michal_f
    January 18th, 2016 at 14:11 | #3

    @Ondrej Žilinec

    I think both. 🙂

  1. No trackbacks yet.