OneDrive Settings are terrible

thefern profile image Fernando B 🚀 ・1 min read

Recently I updated my vscode powershell extension, and wanted to update my package management. I noticed onedrive with a big red X. I don't use OneDrive\MyDocuments on my company laptop exactly for this reason, but I needed to keep these dlls for powershell, and I also needed to sync to onedrive for a few folders I shared with my coworkers for documentation.

onedrive discussion #fail

If you ever need to sync onedrive, but is complaining about file extensions that are not whitelisted. I wrote a little script for it, if you've ever had to fight OneDrive then this is for you.


pip install onedrive-ignore
Enter fullscreen mode Exit fullscreen mode


onedrive --ignore
onedrive --restore

# Short version
onedrive -i
onedrive -r
Enter fullscreen mode Exit fullscreen mode

Files ignored, synced to onedrive:

Files restored, onedrive complaining, and not syncing:

Let me know if you've ever came across this issue before, or how is your IT dealing with it.


Editor guide