| | 0

OneDrive for Business: Error while synchronizing files on Windows 10 – (Red Cross, Office 365 synchronization problems)

OneDrive for Business synchronized files from SharePoint Online with your local file storage. So you can work with this files on- and offline. This mechanism is very robust. Nevertheless, it can happen that the synchronization stops: affected folder are marked with a red cross – synchronization problems with Office 365 are occurred.

It’s helpful to clear the OneDrive cache and rebuild it (do not delete the synchronized folder structure – this can cause in a loss of your files on SharePoint!).

The following script terminates the OneDrive for Business related processes and clears the cache. Then you must restart the OneDrive for Business app again. Note: All subscribed folders will be synchronized from scratch.

Use at your own risk.

Scriptdownload:

ClearOneDriveCache.cmd

ClearOneDriveCache.cmd.txt

Script

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@echo off
echo ClearOneDriveCache: marcel.meurer@sepago.de, Twitter: MarcelMeurer, January 2016
echo.
echo Killing Office Processes
taskkill /IM "groove.exe" /F
taskkill /IM "msosync.exe" /F
taskkill /IM "msouc.exe" /F
echo.
echo Removing Cache Files
RMDIR "%UserProfile%\AppData\Local\Microsoft\Office\Spw" /S /Q
RMDIR "%UserProfile%\AppData\Local\Microsoft\Office\15.0\OfficeFileCache" /S /Q
RMDIR "%UserProfile%\AppData\Local\Microsoft\Office\16.0\OfficeFileCache" /S /Q
echo.
echo Please restart OneDrive for Business
pause