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: Oldest
  1. Anonymous
    2024-12-28T14:02:38+00:00

    Simplest solution for me:

    1. Pause syncing
    2. Resume synging

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-12-28T20:28:39+00:00

    Indeed, and you can do it with just one click using the following batch file:

    cd %userprofile%\AppData\Local\Microsoft\OneDrive

    OneDrive.exe /shutdown

    OneDrive.exe /background

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-01-01T07:36:33+00:00

    I agree with the pages and pages of frustrated (but dedicated Microsoft users) that say why can't we have simple "Sync Now" button but alas if you click the OneDrive icon on the right hand side of the task bar, then click Settings, then click "Pause Syncing" (for say 2 hours) and then immediately click "Resume Syncing" and it will fire up and you will see your changed files updating. I find photos get updated immediately.

    However I also want to sync other folders and files from my C: drive without having that file sit inside the Documents folder (which OneDrive automatically syncs). So I use the MKLINK cmd (syntax below).

    eg. mklink /J "%UserProfile%\OneDrive\mystuff" "C:\mystuff"

    It works for a while then stops working ... it's incredibly frustrating. Does anyone else have a solution please to this (an alternative to using MKLINK?

    Oh, and if anybody still lives that created XTREE GOLD can you please update it so it runs on MS Windows. Happy to crowd fund!

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Anonymous
    2025-01-29T21:18:56+00:00

    The "onedrive.exe /sync" command does not work for me. I get " sync is not recognized as an internal or external command, operable program or batch file

    Was this answer helpful?

    0 comments No comments