OneDrive does not provide a separate password for an arbitrary folder on your PC; for a personal OneDrive account, move those files into Personal Vault, which requires identity verification and automatically relocks after inactivity.^1^
Set up Personal Vault on Windows
Personal Vault is available with OneDrive Basic, Personal, and Family subscriptions on Windows 10 version 1903 or later and Windows 11.
- Open File Explorer → OneDrive – Personal.
- Open Personal Vault. It can also be opened from the OneDrive cloud icon in the Windows notification area.
- Select Get started, then Next or Continue.
- At Verify your identity, choose an available method:
- Windows Hello face, fingerprint, or PIN
- Microsoft Authenticator
- A code sent by email or SMS
- Select the existing files or folders you want to protect and move or drag them into Personal Vault.
- When finished, open Personal Vault and select Lock. It will also lock automatically after inactivity.
When locked, the files require reauthentication, do not appear in search results, and cannot be shared directly from Personal Vault.^1^
If this is a work or school OneDrive account
Microsoft’s Personal Vault documentation lists it for personal OneDrive Basic, Personal, and Family accounts. If Personal Vault does not appear in your OneDrive folder or from the taskbar cloud icon, check whether the account is shown as OneDrive – Personal or as an organization’s OneDrive.
For organizational OneDrive, protect local access by giving each person who uses the PC a separate Windows account and locking or signing out of Windows when leaving the computer. Windows has no built-in feature that simply adds an independent pop-up password to an ordinary file or folder; its supported protections rely on Windows accounts and permissions or encryption.^2^
A password configured on a OneDrive sharing link is different: it protects people opening that link, not someone already signed into your Windows account or browsing the synchronized OneDrive folder on your PC.
References
- Protect your OneDrive files in Personal Vault | Microsoft Support
- How to require a password to access a file or folder - Microsoft Q&A