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. MartMcd 2,670 Reputation points Volunteer Moderator
    2025-03-07T18:39:40+00:00

    Moderator note

    This thread seems to be attracting off topic and abusive posts, therefore it will be locked to prevent any further Code of Conduct violations.

    Please, be polite and respectful in your posts, and in your replies to other people.

    If you have suggestions for improvement you can send them to the development team using the feedback hub (winkey+F)

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2025-03-07T16:50:07+00:00

    Hello Oliver,

    Thank you for posting in Microsoft Community.

    Yes, there is a way to force OneDrive to sync manually. Here are the steps:

    1. Right-click on the OneDrive icon in the system tray (bottom right corner of the screen).
    2. Click on "Help & Settings" and then select "Settings".
    3. In the "Account" tab, click on "Unlink this PC" and confirm the action.
    4. Sign in again with your Microsoft account and select the folders you want to sync.
    5. OneDrive will start syncing the selected folders immediately.

    Alternatively, you can also force a manual sync by following these steps:

    1. Press the Windows key + R to open the Run dialog box.
    2. Type "cmd" and press Enter to open the Command Prompt.
    3. Type "cd %userprofile%\OneDrive" and press Enter to navigate to the OneDrive folder.
    4. Type "onedrive.exe /sync" and press Enter to force a manual sync.

    If it still take some time for the files to sync, you can upload the files directly to OneDrive, so other user who needs the file can access it right away. You just need to go to this page Sign in - Microsoft OneDrive and you will have an option to upload the file.

    I hope this helps! Please let us know so we can check more options for you.

    Regards,

    Nhiel T.

    Microsoft Moderator

    [removed - COC violation] suggesting to unlink to resync because thats not whats being asked for. unlinking will undo all of onedrive then you have to resetup onedrive...so it is not the force sync that was asked for.

    Its like someone says "how do i fix word" and you suggest to format the entire PC

    [removed - COC violation]

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  3. 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

  4. Anonymous
    2025-03-06T19:30:54+00:00

    Here is the way to figure out OneDrive.exe location on Windows 11 PC.

    1. Type "onedrive" into Search control on your taskbar - you'll see OneDrive App in the "Best match".
    2. Right-click on OneDrive App, in the context menu select second option - "Open file location" command
    3. Explorer opens ...\Windws\Start Menu\Programs folder - and you'll see there "OneDrive" - but this is not yet what you need, this only the shortcut - the LNK file, not the EXE.
    4. Now right-click on the LNK file and in the context menu open "Properties" (alternatively, select OneDirve.LNK and press Alt+Enter) - this will open properties dialog box (Shortcut tab)
    5. You have now in the top section third line "Target:" field - and that is exactly what you need.

    On my PC I see there "C:\Users\andre\AppData\Local\Microsoft\OneDrive\OneDrive.exe", first part (C:\Users\andre) is my user profile folder, represented by %userprofile% variable in my batch file.

    Hope this helps - you should see the correct location of the OneDrive.exe file on your PC following the steps above.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2025-03-06T10:21:27+00:00

    This is so daft. Microsoft is a huge developer of PC software. Cornerstone of Windows 11 is OneDrive. It doesn't synchronise files. The main thing it needs to do!

    So a clue to the maintenance programmers.

    For hours I tried all the ideas above here and hit a wall every time so I went into maintenance program mode. Isolate the problem.

    My file was created on PC1. It shows on OneDrive online and can be opened in Excel online.

    It is not shown on PC2 in OneDrive. 4 hours later it still is not shown but I can see it in OneDrive online on PC2.

    Ok download it, then move it to its correct location on my local disk on PC2. Make a small change. Look on PC1 and it has synched. Make a small change on PC1 and then check back on PC 2. It has synched.

    So the problem lies in the PC code that finds new files on the server. Now reproduce this on your development system Add some trace code and figure it out. If you can't reproduce it. Find an irate user like me. Ask if I can run some test code for you!

    Basic life as a maintenance coder. The life blood of the industry. Fix the little things then all the big things will work.

    Was this answer helpful?

    7 people found this answer helpful.
    0 comments No comments