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: Most helpful
  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-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
  3. Anonymous
    2025-01-30T20:01:53+00:00

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

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-01-30T09:31:50+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

    The only way to manually trigger a Sync would be to either Pause the OneDrive client App, wait 2Mins then unpause. If you dont have the 2Mins then kill the process in via Task Manager then reopen the OneDrive Client App.

    Was this answer helpful?

    0 comments No comments
  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