Microsoft Office ownerfile with DFS

Posted on 2011-04-25
Last Modified: 2012-08-13
We run DFS shares on the file server side and Office 2007 or 2010 on the client side.

Clients access files on the file share through the dfs share, not a direct mapping to a server.

We replicate the dfs share and set only one copy as enabled in dfs management to avoid competing updates and replication conflicts.

When Microsoft Office opens a file (Word or Excell) it creates a Office Owner file that has the same name as the opened file but wit the prefix "~$". If the users closes this file it is supposed to be removed from the share. In our environment this owner file sometimes does not get removed and causes problems when another user wants to open that file and he/she is told the file is read only. Manullay locating the ~$ file and deleteing it solves the issue, but we really want to figure out, why in some cases the `$ file is not deleted when a user closes the document.

Any advise?
Question by:Gerhard_W
    LVL 27

    Assisted Solution

    by:Chinmay Patel
    Hi Gerhard_W,

    This happens when an MS Office application ends unexpectedly[application crashes, OS crashes, user keeps the document open on his laptop, hibernates and moves on or ust detaches the network cable and walks away happily] and in some cases none of this. Even though you closed Word properly that file will stay there.

    If I am not wrong, you are not going to get a definitive answer for this question and it case you get it, I will be waiting here.


    Author Comment

    Thanks for the response. The question is then, how to recover from it. In our scenario the file is locked unitl we  manually remove the ~$ ownerfile. I would expect some kind of automatic time out on this.  
    Another option is to have a cleanup job running overnight on the fileshares that finds and deletes old ~$ ownerfiles.
    LVL 24

    Assisted Solution


    Chinmay is completely right, and because of this there can't be any automatic timeout: The client application (Excel, Word...) creates this file and a timeout would only work if there would be any program available which checks the connection - as the program is on the client and this one disconnects unexpectedly nothing is left which could check for this file.
    I'm afraid running a job which deletes such files automatically is the only chance you have. You can start such a job not only overnight, you should also be able to start it at any time you want because you can't delete such files accidentaly as long as the application/the OS locks them.


    LVL 27

    Accepted Solution

    On the similar notes... what I would suggest is develop a batch file and proivde a shortcut on User's desktop. So and train them to click on in whenever they face issue like this. As files are going to be locked if they are really being used we won't have any issue.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Article by: Leon
    Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
    This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
    This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now