When we buy license to use office365 services we have lots of collaboration possibilities. One of the great features is OneDrive. OneDrive gives us the possibilities to backup folders like desktop, documents and pictures what makes the life of working on multiple devices much easier. (e.g., some of this content was written on my iPhone while my device was rebooting and checking my disk)
Sometimes files lock and OneDrive cannot sync or work with the document. What can we do to solve that?
In this example NTFS permissions blew up and I had to fix it to delete the file.
- Onedrive KFM configured
Your document is stuck. It cannot open, you cannot delete it, it cannot be renamed. Just stuck!
To fix the issue
Let’s have a good old CMD
chkdsk c: /F /R
Warning: before restarting your device consider if you have the time to wait, as it can take very long time depending on various parameters.
And with that trick our file(s) are back online and ready to work with again.
To fix the issue using Endpoint Manager
Devices -> Windows -> PowerShell Scripts -> Add
Give it a documenting naming standard
Script can be downloaded here:
Build upon Ben Whitmore’s notification script but with some change in code, as I don’t want attachment to external files. Pictures are encoded.
Also borrowed code from Damien Van Robaeys which encode ServiceUI.exe for breaking out of system context, which was needed in this scenario.
Select a test group.
If users have trouble syncing files as specified, add them to the assigned group and save time for your helpdesk by automating it.
Using OneDrive as backup and collaboration tool is superb. Sometimes things can go wrong, and we need to know how it can be solved.