Force sync in OneDrive

Anonymous
2024-02-13T08:24:30+00:00

Is there any way of forcing OneDrive to sync? Let's say a user uploads a document on one client, and user 2 wants to access that document immediately on his client, but onedrive haven't synced that folder yet.

Is there a way to force a manual sync? Ideally with like a .bat file or something that i can pin to the taskbar that the user can just click to run just to speed up the process

Microsoft 365 and Office | OneDrive | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

92 answers

Sort by: Newest
  1. Anonymous
    2024-10-16T03:37:25+00:00

    Neither of these solutions work.

    Solution #1 does not trigger OneDrive to begin syncing immediately - OneDrive continues to sit on all files as-is.

    Solution #2 yields the following error message: 'onedrive.exe' is not recognized as an internal or external command, operable program or batch file.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-10-15T21:49:26+00:00

    I completely agree with you. This thing is a disaster from the word go. POS. Glad I'm on a Mac. At least the iCloud synchs immediately and is available on all devices quickly.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-10-11T01:44:47+00:00

    I did not see the post with screenshots. I will look for it. Thank you. ☺️

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-10-11T01:32:13+00:00

    One issue with my recipe, that was already indicated by some other users is that the OneDrive.EXE location is not identical on all types of Windows installations, so simple copy-pasting of my batch file just doesn't work.

    I tried to explain how I figured out the location of this EXE file on my own PC in my answer to Chris Hire. I described in detail the whole process and even made some screenshots to make it easy to follow (this process is quite convoluted, I must admit - so I tried to make my answer clear to even "not tech savvy" users.)

    If something is still not working for you - try to provide basic information what is the issue, where it breaks down - then I can try to help. You say - "I tried to follow the directions I found and they didn’t work" - this is not actionable, I don't know what you did and what exactly the issue was, so I can't help you more.

    Have you seen my second answer to Chris Hire with the screenshots? Did you try to find correct location of OneDrive.exe on your particular PC?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2024-10-11T00:27:17+00:00

    I have standard Windows 11 installation, and that works for me just fine, onedrive.exe for me is in

    "%userprofile%\AppData\Local\Microsoft\OneDrive" folder

    (by the way %userprofile% variable would correspond most likely to something like "C:\Users\andre" - last part is my username on my PC).

    I understand that this is not much of a help if in your case location of the onedrive.exe is for some reason different. You need to figure out where is it in your case.

    Let me explain how you should be able to find where the heck your EXE file is sitting.

    (Below I describe the actions you can take on your Windows 11 installation to find the location on your rig, all screenshots are taken on my computer, hope it should look almost the same on yours)

    1. Type "one" into Search field on your taskbar - this will open the Search window of best matches, and in the Apps section you should see OneDrive:

    Image

    1. Right-click on this line, and in drop-down list select second command - "Open file location", that will open up Explorer window for the "Programs" folder
    2. There you will see not the onedrive.exe itself - not yet, but the shortcut to it, OneDrive.lnk,

    Image

    1. then again right-click it and select "Properties" command - you will open Properties window for your shortcut:

    Image

    1. That's it - finally, in the "Target" field you should see correct location of the OneDrive.exe binary on your particular PC.

    Now you should be able to use correct path in your batch file and it should work properly.

    Hope it helps,

    Andre

    P.S.: After you make your batch file and test that it works, there is one other thing that can make it more convenient to use - create a desktop shortcut to this batch file, and then you will need just to double-click it to perform manual sync, something like that -

    Was this answer helpful?

    0 comments No comments