Press the Windows key and R to open the Run dialog box, enter wsreset.exe, then select OK.
A blank Command Prompt window will open, and after about ten seconds the window will close. You can close the Microsoft Store window.
If OneDrive is still not syncing, press the Windows key and R again.
Copy this and paste it into the dialog window, then press OK.
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
If you see a "Windows cannot find..." message, copy and paste this instead, then press OK.
C:\Program Files\Microsoft OneDrive\onedrive.exe /reset
If you see a "Windows cannot find..." message, copy and paste this instead, then press OK.
C:\Program Files (x86)\Microsoft OneDrive\onedrive.exe /reset
Manually restart OneDrive by going to Start , type OneDrive in the search box, and then click on the OneDrive desktop app.
Notes:
Resetting OneDrive disconnects all your existing sync connections (including personal OneDrive and OneDrive for work or school if set up). You won't lose files or data by resetting OneDrive on your computer.
If you had chosen to sync only some folders before the reset, you will need to do that again once sync has completed. Read Choose which OneDrive folders to sync to your computer for more information.
You will need to complete this for your personal OneDrive and OneDrive for work or school.