Home > Microsoft, Security, Windows > DFSR not copying all temporary files

DFSR not copying all temporary files

I implemented DFSR replication in our customer between two locations. There are people opening same files on both locations and they want to use Office document locking feature. This locking mechanism is based on creation of temporary files (~*). So I removed file exception (~*) from DFSR Replicaiton Group and allowed to replicate temporary Office files. When I create and open Word document on one location two files are were: WORD.docx and ~$WORD.docx. And when I created new Excel document two files were created: EXCEL.xlsx and ~$EXCEL.xlsx.

Creation of temporary filesOn other location only two files were replicated (created): WORD.xlsx and ~$WORD.xlsx:

Replicated filesWhen I closed Word and Excel temporary files dissapeared and docx and xlsx files replicated correctly.

So let’s look why those files were not replicated. In some Technet articles I found that DFSR doesn’t replicate temporary files. More info is here and here.

It’s nice to know that DFSR doesn’t replicate files marked as temporary. So let’s look at those opened Word and Excel files.

WORD.docx

File attrib

– Only archive attribute set (0x20)

~$WORD.docx:

File attrib– Archive attribute (0x20) and Hidden (0x02)

EXCEL.xlsx

File attrib– Only archive attribute set (0x20)

~$EXCEL.xlsx

File attrib

So utility fsutil cannot open data from this file. It looks that Excel opens its files different way as Word does. And that’s why file ~$EXCEL.xlsx didn’t copy to other location, because DFSR cannot access this file while it’s opened in Excel.

This Excel behaviour causes that Office locking mechanism is not working over DFSR.

Let’s hope Microsoft will fix this in other release Office 🙂

Have a nice day,

  1. December 29th, 2021 at 01:30 | #1

    My wife and i got really lucky John could carry out
    his reports using the precious recommendations he was given through your web page.
    It is now and again perplexing just to always be handing out tips and tricks that
    many other people might have been trying to sell. And we keep in mind we now have you to be grateful to
    for that. These explanations you’ve made, the straightforward website navigation, the relationships you will help promote – it’s got all fantastic,
    and it is helping our son and our family consider that this subject
    is amusing, and that’s extremely fundamental.

    Thanks for everything!

  2. January 3rd, 2022 at 10:10 | #2

    Wonderful article! We will be linking to this great content on our site.
    Keep up the good writing.

  3. January 12th, 2022 at 22:29 | #3

    Some genuinely wonderful info, Sword lily I noticed this.

  4. August 19th, 2022 at 16:36 | #4

    I have a bunch of these for every day smoking and I haven’t been let down.

  1. No trackbacks yet.