When you log in to the PTC User site, Go to Resources, Library, expand the public files area, (pick "View all Topics"), pick Scripts. The top three items are what you want. See the attached email for how to use the file I posted. That file was written by Dan Wolf, one of the guys I work with recompiled it after making a minor change.
To be fair, the CS that links to PTC User's cache recovery tool does have alternate methods of recovery. The other one is "send us your .wf folder and we'll fix you right up". Maybe useful for some, but problematic for others (like myself).
Business Continuity with Creo: Learn more about it here.