尽管我们倾向于喜欢OneDrive服务,并且我们在我们的Windows 10计算机上使用它,但我们遇到了一些问题。其中之一是,有时我们会遇到 OneDrive(OneDrive)不同步的问题。另一个是知道它执行上次同步的时间,以了解它是否同步了您添加的最新文件。以下是如何执行OneDrive强制同步以及如何检查文件上次在Windows 10和 Windows 7 中同步的时间:
注意:(NOTE:)由于Windows 10和Windows 7中的内容相同,因此我们主要使用Windows 10的屏幕截图来说明这两个操作系统的说明。
如何查看上次同步 OneDrive 文件的时间
如果OneDrive(OneDrive)看起来没有在您的 Windows 10 或 Windows 7 计算机上同步,并且您想检查文件上次同步的时间,请单击或点击任务栏通知区域中的OneDrive图标一次。
Windows 10任务栏中的OneDrive 图标
此操作会打开一个窗口,OneDrive会在其中显示它最后执行的操作。对于每个同步的文件,您可以查看发生的时间有多远。
Windows 10中OneDrive显示的上次同步时间
在 Windows 7 中,OneDrive应用程序看起来与Windows 10中的应用程序相似,如下面的屏幕截图所示。
Windows 7中OneDrive显示的上次同步时间
请注意,这是我们知道的在Windows 10或 Windows 7中查找OneDrive上次同步文件时间的唯一方法。
在 Windows 10中,Microsoft Store 中(OneDrive app in the Microsoft Store)还有一个OneDrive 应用程序,它与桌面应用程序不同。但是,来自Microsoft Store的应用程序不提供有关上次同步时间的任何信息。
(Microsoft Store OneDrive)适用于Windows 10的(Windows 10)Microsoft Store OneDrive应用
OneDrive 多久同步一次?
在正常情况下,OneDrive应用程序会在检测到更改后立即持续同步您的文件,这应该会自动执行。您没有任何控件来强制OneDrive同步,也没有任何与同步过程的频率相关的选项。
正如我们所说,这都是自动的,因此如果您的OneDrive未在Windows 10或 Windows 7 中同步,您实际上无能为力。但是,您可以通过暂停和恢复同步或重新启动应用程序来执行OneDrive强制同步。(OneDrive )这里有几种方法可以做到这一点:
1. 如何使用OneDrive的“暂停(Pause)同步”功能强制同步
在Windows 10或Windows 7中,强制OneDrive同步文件可能相当容易,但并不完全直观。您所要做的就是“暂停同步”(“Pause syncing”),然后“恢复同步”。(“Resume syncing.” )这是如何做到的:
单击或点击任务栏右侧的OneDrive图标,然后在显示的弹出窗口中按(OneDrive’s)“帮助和设置”。(“Help & Settings.”)
OneDrive 菜单中的帮助和设置
上一个操作打开OneDrive 的(OneDrive’s)菜单。在其上,单击或点击“暂停同步”(“Pause syncing”),然后选择“2 小时”(“2 hours”)或任何其他可用选项。
暂停 OneDrive 同步
OneDrive在您选择的时间内立即停止同步您的文件。在其弹出窗口中,它会告诉您同步暂停,就像下面的屏幕截图一样。
OneDrive:您的文件当前未同步
要强制OneDrive同步,只需要做一件事。再次打开OneDrive 的(OneDrive’s)窗口,然后单击或点击顶部的暂停(Pause)按钮。
在 OneDrive 中恢复同步
或者,您也可以从其菜单中按“恢复同步”选项。(“Resume syncing”)
(Resume)从其菜单恢复OneDrive同步
此操作使OneDrive立即同步最新数据。
2. 如何使用OneDrive的菜单进行强制同步
执行OneDrive强制同步的另一种方法是停止OneDrive应用,然后重新启动。要停止它,请在任务栏通知区域中右键单击(或点击并按住)其图标,然后按关闭 OneDrive。(Close OneDrive.)
OneDrive 强制同步:关闭 OneDrive
然后,再次启动OneDrive。在Windows 10和Windows 7中,一种快速的方法是在“开始”菜单中查找(Start Menu)OneDrive快捷方式,然后单击或点击它。
强制 OneDrive(Force OneDrive)同步:重新启动OneDrive应用
3. 如何使用任务管理器强制(Task Manager)OneDrive同步
在Windows 10(Windows 10)和Windows 7中强制OneDrive同步的另一种方法是使用任务管理器(Task Manager)重新启动OneDrive应用程序。
打开任务管理器(Task Manager)并选择进程(Processes)选项卡。然后,找到Microsoft OneDrive进程,右键单击(按住)它并选择“结束任务”(“End Task”)以停止其进程。
结束 OneDrive 任务
在同一个任务管理器(Task Manager)窗口中,打开文件(File)菜单,然后单击或点击“运行新任务”。(“Run new task.”)
使用任务管理器运行新任务
任务管理器(Task Manager)现在启动一个名为“创建新任务”的新窗口。(“Create new task.”)在Open字段中,键入%localappdata%\Microsoft\OneDrive\OneDrive.exe,然后单击或点击OK。
(Start OneDrive)通过运行 %localappdata%MicrosoftOneDriveOneDrive.exe启动 OneDrive
OneDrive 的(OneDrive's)进程现在应该重新开始。启动后,它会自动触发文件检查,如果检测到任何更改,它也会开始同步您的文件。
4. 如何使用命令提示符进行(Command Prompt)OneDrive强制同步
命令提示符(Command Prompt)还提供了OneDrive不同步问题的替代解决方案。打开 cmd(Open cmd)并依次运行以下命令:
cd /d %LOCALAPPDATA%\Microsoft\OneDrive
OneDrive.exe /shutdown
OneDrive.exe
OneDrive 使用命令提示符中的命令强制同步(Command Prompt)
第一个命令将工作目录设置为安装OneDrive的目录。(OneDrive)第二个命令关闭OneDrive,最后一个命令重新启动应用程序。结果是OneDrive应用程序重新启动,这将强制OneDrive同步。
5. 如何使用PowerShell进行(PowerShell)OneDrive强制同步
最后,我们对OneDrive不同步问题的最终解决方案是使用PowerShell重新启动(PowerShell)OneDrive。打开 PowerShell(Open PowerShell)并运行以下命令以关闭OneDrive应用:
杀死 -Name OneDrive -Force(Kill -Name OneDrive -Force)
(Kill OneDrive)从PowerShell中(PowerShell)终止 OneDrive进程
然后,运行下一个命令以重新启动OneDrive:
Start $env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe
(OneDrive)通过从PowerShell启动(PowerShell)OneDrive强制同步OneDrive
现在应用程序重新启动,这应该会强制OneDrive同步。
您(Did)是否设法进行OneDrive强制同步?
我们希望本指南对您有用,并且您设法修复了您遇到的“OneDrive 未同步”问题。(“OneDrive not syncing”)如果您知道其他强制OneDrive同步或检查OneDrive何时同步文件的方法,请在下面的评论部分告诉我们。我们将尽快更新本指南。
OneDrive not syncing? 5 ways to force OneDrive to sync in Windows -
Although wе tend to like the OneDrive service, and we use it on our Windows 10 computers, there are a few quirks that we have trouble with. One of them is that, sometimes, we’re facing issues with OneDrive not syncing. Another one is knowing when it performed the last synchronization to get an idea whether it has synchronized the latest files you have added. Here is how to do an OneDrive force sync and how to check when your files were last synced by it in Windows 10 and Windows 7:
NOTE: Because things are the same in Windows 10 and Windows 7, we are using mostly screenshots from Windows 10 to illustrate the instructions for these two operating systems.
How to see when OneDrive files were last synced
If it looks like OneDrive’s not syncing on your Windows 10 or Windows 7 computer, and you want to check when your files were last synchronized, click or tap once on the OneDrive icon from the taskbar notification area.
OneDrive icon from Windows 10's taskbar
This action opens a window where OneDrive shows which were the last actions that it performed. For each of the synced files, you can see how far back in time that happened.
Last sync times shown by OneDrive in Windows 10
In Windows 7, the OneDrive app looks similar to the one in Windows 10, as you can see in the screenshot below.
Last sync times shown by OneDrive in Windows 7
Note that this is the only way we know for finding out when OneDrive last synchronized your files in either Windows 10 or Windows 7.
In Windows 10, there is also an OneDrive app in the Microsoft Store, which is different from the desktop application. However, the app from the Microsoft Store doesn’t offer any information regarding the last sync time.
Microsoft Store OneDrive app for Windows 10
How often does OneDrive sync?
In normal circumstances, the OneDrive application syncs your files continuously, as soon as it detects a change, which it should do automatically. You don’t get any controls to force OneDrive to sync, and you don’t get any options related to the syncing process’s frequency.
As we said, it’s all automatic, so there’s not much you can actually do if your OneDrive is not syncing in Windows 10 or Windows 7. However, you can do an OneDrive force sync by pausing and resuming sync or by restarting the app. Here are a few ways to do that:
1. How to force OneDrive to sync using its “Pause syncing” feature
In either Windows 10 or Windows 7, forcing OneDrive to sync your files can be rather easy, although not exactly intuitive. All you have to do is “Pause syncing” and then “Resume syncing.” Here’s how to do it:
Click or tap on OneDrive’s icon from the right side of the taskbar and, in the popup window that shows up, press “Help & Settings.”
Help & Settings in OneDrive's menu
The previous action opens OneDrive’s menu. On it, click or tap on “Pause syncing” and select “2 hours” or any of the other options available.
Pause syncing for OneDrive
OneDrive immediately stops syncing your files for the time you selected. In its popup window, it tells you about the syncing pause, just like in the screenshot below.
OneDrive: Your files are not currently syncing
To force OneDrive to sync, there’s only one thing left to do. Open OneDrive’s window again, and click or tap on the Pause button from the top.
Resume syncing in OneDrive
Alternatively, you can also press the “Resume syncing” option from its menu.
Resume syncing for OneDrive from its menu
This action makes OneDrive sync the latest data, right now.
2. How to do an OneDrive force sync using its menu
An alternative way to do an OneDrive force sync is to stop the OneDrive app and then start it again. To stop it, right-click (or tap and hold) on its icon from the taskbar notification area, and then press Close OneDrive.
OneDrive force sync: Close OneDrive
Then, start OneDrive again. Both in Windows 10 and Windows 7, a quick way to do it is to look for the OneDrive shortcut in the Start Menu and click or tap on it.
Force OneDrive to sync: Restart the OneDrive app
3. How to force OneDrive to sync using Task Manager
Another way to force OneDrive to sync, both in Windows 10 and Windows 7, is to restart the OneDrive application using Task Manager.
Open the Task Manager and select the Processes tab. Then, find the Microsoft OneDrive process, right-click (press-and-hold) on it and select “End Task” to stop its process.
Ending the OneDrive task
In the same Task Manager window, open the File menu and click or tap on “Run new task.”
Using Task Manager to Run new task
Task Manager now launches a new window, called “Create new task.” In the Open field, type %localappdata%\Microsoft\OneDrive\OneDrive.exe, and click or tap on OK.
Start OneDrive by running %localappdata%\Microsoft\OneDrive\OneDrive.exe
OneDrive's process should now start again. Once it’s launched, it automatically triggers a file check and, if any change is detected, it also starts syncing your files.
4. How to do an OneDrive force sync using Command Prompt
Command Prompt also offers an alternative solution to the OneDrive not syncing problem. Open cmd and run the following commands, one after the other:
cd /d %LOCALAPPDATA%\Microsoft\OneDrive
OneDrive.exe /shutdown
OneDrive.exe
OneDrive force sync using commands in Command Prompt
The first command sets the working directory to the one where OneDrive is installed. The second command shuts down OneDrive, and the last one relaunches the app. The result is that the OneDrive app is restarted, which should force OneDrive to sync.
5. How to do an OneDrive force sync using PowerShell
Finally, our final solution to the OneDrive not syncing issues is to restart OneDrive using PowerShell. Open PowerShell and run the following command to close the OneDrive app:
Kill -Name OneDrive -Force
Kill OneDrive process from PowerShell
Then, run the next command to relaunch OneDrive:
Start $env:LOCALAPPDATA\Microsoft\OneDrive\OneDrive.exe
OneDrive force sync by launching OneDrive from PowerShell
Now the app is restarted, which should force OneDrive to sync.
Did you manage to do an OneDrive force sync?
We hope this guide was useful and that you managed to repair the “OneDrive not syncing” problems you’ve met. If you know other ways to force OneDrive to sync or check when OneDrive synced your files, let us know in the comments section below. We will update this guide as soon as possible.