Script Download: ReinitializeOfflineFilesCacheAndDatabase.zip
http://gallery.technet.microsoft.com/scriptcenter/Reset-Offline-Files-Cache-83249475

This script resets offline files cache and database. You can use this script to reset offline files cache and database on a local computer or against remote computers. Work group computers are also supported.

On a Windows Vista-based or Windows 7-based client computer, you can still access offline files even though the file server is removed from the network. On a Windows XP-based client computer, sometimes the offline files cache and database may be corrupted. If multiple computers have this problem, Help desk need a script to reset offline files cache and database on multiple machines.

image image
 image

You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery