Microsoft 的文件托管服务OneDrive被Windows用户广泛用于从任何地方访问文件、文件夹、照片,无论您使用何种设备。此外,它还允许用户存储BitLocker 恢复密钥、Windows 设置(Windows Settings)和其他文档等文件。这是最强大的云服务之一,它允许用户将数据存储在在线云存储中并在Windows系统上访问它们,从而有助于节省宝贵的系统存储空间。OneDrive 提供了一种共享这些文件的便捷方式,并提供了实时协作的方式。

云存储服务与Microsoft Office集成,允许用户创建办公文件夹、在线编辑和共享Office文档。(Office)但有时您可能会发现自己在云平台中打开文档时遇到问题。在OneDrive(OneDrive)中打开文档文件可能会显示如下消息:
该文件已锁定以供其他用户编辑
如果您使用的Office(Office)文档未正确关闭或文档已打开并在后台运行,通常会发生此错误。如果文件在网络上协作和共享,并且文件已打开并被其他用户使用,也会出现错误消息。
在本文中,我们将讨论解决此问题的步骤。如果你发现你的OneDrive文件被锁定以供编辑或共享使用,那么这篇文章将向你展示如何解锁文件并使其再次可访问。
但在进行故障排除之前,请确保该文档没有被网络上的其他用户使用。此外,如果其他用户正在使用该文档,请确保您以只读格式打开该文件。
OneDrive 文件已锁定
要修复OneDrive(OneDrive)错误中的文件被锁定以供其他用户编辑,请按照下列步骤操作:
- 删除所有者文件
- 终止(Terminate)所有Office文件实例
要了解有关这些步骤的更多信息,请继续阅读。
1]删除所有者文件
当用户创建并保存文档时,会自动创建所有者文件。该文件是一个临时文件,用于存储使用该文档的用户的登录名。所有者文件的文件名前面带有波浪号 (~) 和美元符号 ($) 等符号。所有者文件位于包含已锁定文档的同一文件夹中。
打开文件资源管理器(Open File Explorer)。找到(Locate)并浏览到包含所需文件的文件夹,当您打开它时会显示错误消息。
现在搜索并找到以符号~所有者(Owner)文件,后跟$和文件名。右键单击并选择删除(Delete)。
现在打开同一个文档。
如果上述解决方案不能解决问题,请尝试关闭所有文档实例。
2]终止(Terminate)所有Office文件实例
按(Press)键盘键 Ctrl+Alt +Delete并单击Task Manager。
如果是Word文件,请转到进程(Process)选项卡并搜索Winword.exe 。
右键单击它,然后从下拉列表中单击结束进程。(End)
现在转到文件并单击退出。
打开您的文档并查看。
如何解锁要在OneDrive中编辑的文件?
只有一种方法可以解锁要在OneDrive中编辑的文件。如果文件是您创建的,您可以单击解锁(Unlock)或编辑(Edit)按钮。但是,如果您不是某个文件的所有者,则必须删除存储用户数据的临时文件。此类文件的名称以 ~ 或 $, 您可以在存储原始文件的同一目录中找到它。
如何解锁被其他用户锁定的文件?
要解锁被其他用户锁定的文件,您需要删除联系原始用户数据的临时文件。通常,此类文件的名称以 ~ 或 $ 开头。您需要找到该文件并将其从计算机中删除。或者,您可以终止所有Office文件实例以解决此问题。
This should help!
阅读:(Read: )如何从 OneDrive 中取消链接、排除或删除文件夹(How to unlink, exclude or remove a folder from OneDrive)
OneDrive file is locked: The file is locked for editing by another user
Microsoft’s file hosting ѕervice, OneDrive is extensively used by Windows users to access files, folders, photos from anywhere irrespective of the device you use. Additionally, it allows users to store files like BitLocker recovery keys, Windows Settings, and other documents. This is one of the most powerful cloud services that helps in saving that precious system storage by allowing users to store the data in online cloud storage and access them on Windows system. OneDrive offers a convenient way of sharing these files and offers ways for real-time collaboration.

The cloud storage service integrates with Microsoft Office and allows users to create office folders, edit Office documents online and share them. But at times you may find yourself facing problems opening the documents in a cloud platform. Opening a documents file in OneDrive could display a message like:
The file is locked for editing by another user
This error usually occurs if the Office document which you were using was not closed properly or if the document is already open and is running in the background. The error message also occurs if the file is collaborated and shared on a network and if it’s open and being used by another user.
In this article, we discuss steps to resolve this issue. If you find that your OneDrive file is locked for editing or for shared use, then this post will show you how to unlock the file, and make it accessible again.
But before troubleshooting makes sure that the document is not being used by another user over a network. Also if the document is being used by some other user make sure that you open the file in Read-only format.
OneDrive file is locked
To fix The file is locked for editing by another user in OneDrive error, follow these steps:
- Delete the Owner file
- Terminate all the Office file instances
To learn more about these steps, continue reading.
1] Delete the Owner file
When a user creates and saves the documents, an owner file is automatically created. This file is a temporary file that stores the login name of the user using the document. The owner file has a file name preceded with symbols like the tilde (~) and dollar sign ($). The owner file is present in the same folder that contains your document that is locked.
Open File Explorer. Locate and browse to the folder containing your desired file which shows an error message when you open it.
Now search and locate the Owner file which is preceded by sign ~ followed by $ and the name of the file. Right-click and select Delete.
Now open the same document.
If the above solution does not resolve the issue, try closing all the documents instances.
2] Terminate all the Office file instances
Press the keyboard keys Ctrl+Alt +Delete and click on Task Manager.
Go to Process tab and search for Winword.exe in case of a Word file.
Right-click on it and click on End Process from the drop-down.
Now go to Files and click on Exit.
Open your document and see.
How do I unlock a file to edit in OneDrive?
There is only one way to unlock a file to edit in OneDrive. If the file is created by you, you can click the Unlock or Edit button. However, if you are not the owner of a certain file, you must delete the temporary file that stores the user data. The name of such a file starts with ~ or $, and you can find it in the same directory where you stored the original file.
How do you unlock a file that is locked by another user?
To unlock a file that is locked by another user, you need to delete the temporary file that contacts the original user data. In general, such a file starts with ~ or $ in the name. You need to find the file and delete it from your computer. Alternatively, you can terminate all the Office file instances to get rid of this issue.
This should help!
Read: How to unlink, exclude or remove a folder from OneDrive