Sometime our helpdesk need to reset offline file cache on Windows because corrupted.
I created a batch script (I do not used powershell because somewhere winrm is not configured):
You can pass as parameter the hostname/ip address of computer where you need to reset the cache. Use “.” to specify that you want to reset cache on local computer.
You need admin rights and a reboot of remote computer is required after the cache reset.