Microsoft Word 2011 and Mac Network Homes: "This file is locked for editing"

It looks like Microsoft Office 2011 when paired with Mac network home directories is still susceptible to random read only documents because of spotlight. In our testing we confirmed conclusively that when the processes was running certain Word documents would open as read only. We fixed this by disabling spotlight indexing on our home folders. You can do this while logged in as the user by having them run an apple script or terminal command:

set returnmsg to do shell script "mdutil -i off ~ 2>&1"
display dialog returnmsg

mdutil –i off .

Or if you want to set up some kind of loginhook run as root:
sleep 5
su -l $1 -c 'mdutil -i off .'
© 2011 Adam Gerson.