I have a large number (>1000) of clients that i would like to reset the vault cache for. Instead of asking the desktop team or our staff to reset the cache themselves i would like to programmatically reset the vault cache by using PowerShell (.Net) or another programming language. To date i have been unable to determine a way to do this, however i was thinking it may be possible to do it via the Enterprise Vault API? Any help would be greatly appreciated.
Thank you JW3.
It is a shame we dont have a way to do it more cleanly. I would like the ability to reset the cache & re-sync with the server through the CLI.
The major concern of deleting the files (as i am sure you understand) is items that have not been synchronised with the server in the users cache will be lost.
I have tried the OVReset DWORD & it appears to do something as the key is removed once i start up Outlook again, however i cannot see it deleting any .mdc or .db files. Is this the expected behaviour?
JW3, do they want to perform Run Now's on all the users first before removing mdc's? Maybe you could come up with a logon script to remove C:\Users\xxxxxx\AppData\Local\KVS\Enterprise Vault\ and HKEY_CURRENT_USER\Software\KVS\Enterprise Vault\Client\
So i pulled the VC from my client. Now it is showing that no vaults are available. If i perform a run now against the mailbox it does not initiate a synchronisation of the vault cache. The only way i can get it to build the mdc/db is to manually click on the synchronisation button. Programatically this leaves me with very few options as i cannot force a synchronisation.
If you removed the directory and registry key you should get a VC prompt after re-launching Outlook and it will sync. For Virtual Vault check the box on the Virtual Vault tab of Vault Cache Properties.