Fix OneDrive Padlock Icon: Cannot Open Files in File Explorer
Question details
Users are unable to open Office documents and PDFs locally in Windows File Explorer because the files display a padlock icon.

- Product
- Microsoft OneDrive
- Device & OS
- Windows
- Scenario
- Attempting to open synchronized local files from the OneDrive folder using Windows File Explorer.
- Observed behavior
- Files display a padlock icon and refuse to open locally, though they remain accessible and unaffected when viewed via the OneDrive web interface.
Log into OneDrive.com through your web browser to confirm that your files are intact and can be opened online before troubleshooting your local client.
Reset the OneDrive Sync Client
Resetting the Windows OneDrive client forces a complete refresh of your sync connections and often removes erroneous padlock icons.
This process resolves underlying sync engine freezes. Resetting OneDrive disconnects your current synchronization setup and re-syncs your files, but it will not delete any local or cloud data.
Press the Windows key + R simultaneously on your keyboard to open the Run dialog box.
Type %localappdata%\Microsoft\OneDrive\onedrive.exe /reset into the text field and press Enter or click OK.
Wait for the OneDrive cloud icon to disappear and reappear in your system tray. If it does not reappear after a few minutes, manually search for 'OneDrive' in the Windows Start menu and open it.

Unlink and Reconnect Your OneDrive Account
If resetting does not work, unlinking your PC from OneDrive and signing back in can refresh local file permissions and remove the locks.
Check Windows Storage Sense Settings
Windows Storage Sense might be aggressively converting your files to online-only mode, which can sometimes trigger permission lock icons.
Access OneDrive Files Directly with WPS Office
Bypass Windows File Explorer sync issues entirely by connecting your OneDrive account directly within WPS Office to open, edit, and save your documents.
- 1. Install WPS Office: Download and install the free WPS Office application on your Windows PC.
- 2. Open the Application: Launch WPS Office and navigate to the 'Open' tab on the left-hand navigation panel.
- 3. Connect OneDrive: Select 'OneDrive' from the list of cloud storage options and sign in securely with your Microsoft credentials.
- 4. Access Locked Files: Browse your OneDrive folders directly within the WPS interface and click on any document to open it without relying on local Windows File Explorer syncing.

Frequently Asked Questions
What does the padlock icon on a Windows file mean?
A padlock icon typically indicates that the file or folder has restricted permissions, is encrypted with the Windows Encrypting File System (EFS), or has been locked by a cloud sync client like OneDrive due to a sync or authentication error.
Will running the OneDrive reset command delete my files?
No, resetting the OneDrive client using the run command (%localappdata%\Microsoft\OneDrive\onedrive.exe /reset) will not delete any of your local or cloud files. It simply restarts the background sync processes and reconnects your PC to the cloud server.
Why can I open the locked files on OneDrive.com but not on my PC?
This situation occurs when the local OneDrive client on your Windows PC encounters a synchronization or file permission error, restricting your local access. Because the issue is isolated to your local machine's operating system, the cloud version hosted on OneDrive.com remains unaffected and accessible.
How do I manually fix file permissions to remove the padlock?
Right-click the locked file in File Explorer and select 'Properties'. Go to the 'Security' tab and ensure your current Windows user account has 'Full Control' checked under permissions. If it does not, click 'Edit' to change permissions, or click 'Advanced' to take ownership of the file.




