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
    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-10T19:39:42+00:00

    Did you switch to the correct directory with the following command? I suspect the issue is with the file location.

    The location where onedrive.exe normally should be found - %userprofile%\AppData\Local\Microsoft\OneDrive

    Batch file I recommend to use for manual syncing:

    @echo off

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

    OneDrive.exe /background /sync

    exit

    To debug the issue if onedrive.exe is not recognized you can check it existence in the folder by using DIR command.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-08-06T21:10:39+00:00

    This command is incorrect so can't proceed.......cd %userprofile%\OneDrive

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-07-23T06:11:04+00:00

    re: the cmd option....

    I get this as a return 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
  5. Anonymous
    2024-07-08T09:51:44+00:00

    This is a much better solution (pausing and resuming sync) - worked for me straight away! Thanks!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments