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-07-03T12:57:06+00:00

    This way worked for me! Going to write a text file in the OneDrive so I dont have to look on internet everysingle time something doesnt sync (which is almost everytime).

    Found another way that involve erasing some temp files, dont remember which ones but:

    Windows + R

    Write: %localappdata%\Microsoft\OneDrive\settings

    Erase something there...

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-06-28T17:37:59+00:00

    Wow I am mesmerized by how user-unfriendly this product is coded. Super disapointed that my employer is forced into your ecosystem. I hope we will be freed one day from the shackles that are Microsoft ⛓️

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-06-10T16:16:48+00:00

    There doesn't seem to be a /sync command line parameter for onedrive for business - so Nhiel's answer didn't help.

    Pause and Unpause options work but require lots of clicks:

    I've made a .bat batch file based on guidance elsewhere:

    @echo off

    cd "C:\Program Files\Microsoft OneDrive"

    OneDrive.exe /shutdown

    start OneDrive.exe /background

    exit

    I've made a windows shortcut to this and run the shortcut minimised:

    see here for further information:

    https://superuser.com/questions/1742608/batch-script-to-pause-and-resume-one-drive-synchttps://superuser.com/questions/1151464/how-to-force-onedrive-to-synchronize

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-06-08T13:39:21+00:00

    EXE is not located in OneDrive folder under %userprofile%.

    It is in fact located in The Program Files folder under Microsoft OneDrive.

    \Program Files\Microsoft OneDrive

    you can copy paste cd C:\Program Files\Microsoft OneDrive (NOTE: if you did not install to C: replace drive letter to your install directory)

    then enter the command as above - onedrive.exe /sync

    your OneDrive folder will open and then begin to synchronize to your OneDrive cloud.

    Was this answer helpful?

    30+ people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2024-06-03T22:03:50+00:00

    I wish the manual sync option worked for me, but it just says that onedrive.exe doesn't exist in that folder. However, even though it's hugely inconvenient, the unlink option worked. Thank you!

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments