views:

128

answers:

1

MS Office programs keep a list of disabled files that have caused errors when previously opened. A user can remove documents from this list by accessing the list through the program menu and selecting a document to be re-enabled. (http://support.microsoft.com/kb/286017)

The question is: How can this re-enabling of documents be accomplished programatically, without interaction with the gui?

A: 

Regarding MS Office XP (2002) MSWord the list of disabled documents is kept as randomly named binary values under the key: [HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Word\Resiliency\DisabledItems]

So deleting the values under the "DisabledItems" key for every user probably will do the trick.

Is there something more to it? I don't know - yet.

That's it - be aware though that Microsoft implemented that feature for a reason... if the documents/addins are unstable, the user won't thank you for re-enabling everything all the time.
Ant
Yep - there usually is a good reason for documents ending up on this list. My need is a highly specialized application that runs server based and there is no real user to clean up when something goes wrong.