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
    2025-02-11T18:16:39+00:00

    You have to provide correct path to it.

    Standard location for onedrive.exe on Windows 11 - %userprofile%\AppData\Local\Microsoft\OneDrive

    You can use DIR to check if the file is indeed there.

    If for some reason onedrive.exe is not there - search for one of my previous messages in this thread where I explained how to figure it out for any particular Windows installation (detailed step-by-step instructions with screenshots).

    Here is the batch file I'm using to manually sync OneDrive folders on my rig:

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

    OneDrive.exe /shutdown

    OneDrive.exe /background

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-02-11T16:27:39+00:00

    '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
  3. Anonymous
    2025-02-01T02:41:39+00:00

    You really don't need to wait 2 mins .... just PAUSE it, wait 10secs and RESTART ... works for me every time.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-01-30T20:01:53+00:00

    Onedrive.exe location - %userprofile%\AppData\Local\Microsoft\OneDrive

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2025-01-30T20:00:44+00:00

    Yep, indeed, "/sync" is not working, but you don't have to manually pause and wait for 2 minutes to restart or kill the process via Task Manager.

    There is simple and convenient way to trigger synchronization with the following batch file:

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

    OneDrive.exe /shutdown

    OneDrive.exe /background

    • this works just fine. Enjoy!

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments