On Windows 11, you won't find a feature to add a password to a folder to protect your files because your account already uses a password and encryption, and you should be the only one accessing your profile.
However, if you share the computer with others, are concerned about unauthorized access, or want to add another layer of security, you can use Windows 11's virtual hard disk feature along with BitLocker to protect files and folders with a password.
In this how-to guide, I will explain how to protect a folder with a password using drive virtualization and encryption features available on Windows 11.
How to add password to folder on Windows 11
Windows 11 doesn't have a feature to protect a folder with a password because the account is already protected with your profile credentials (and encryption if you use BitLocker). However, you can use the virtual drive and BitLocker features to create a secure drive with a password, which works similarly to a password-protected folder.
Create virtual drive to act as a folder
To create a virtual drive that will act as a password-protected folder, use these steps:
- OpenSettings.
- Click onSystem.
- Click theStoragepage on the right side.
- Clickon"Advanced storage settings" under the "Storage management" section.
- Click theDisks & volumessetting.
- Click theCreate VHDbutton.
- Choose a descriptive name for the virtual drive.
- Click the Browse button.
- Specify a location to store the virtual drive.
- Confirm the drive size (in gigabytes). For example, 10GB.
- Select theVHDXoption.
- Select theDynamically expandingoption.
- Click the Create button.
- Select the"GPT (GUID Partition Table)"option.
- Click theInitializebutton.
- Confirm a label for the virtual drive as you want it to appear on File Explorer.
- Choose the drive letter you want to appear in the system.
- Select the"NTFS"option for the "File System" setting.
- Click theFormatbutton.
Once you complete the steps, the virtual drive will be created, and you can now use it as a folder to securely store files by encrypting it using BitLocker.
Protect folder with BitLocker password
To set up BitLocker to protect the drive with a password on Windows 11, use these steps:
Get the Windows Central Newsletter
All the latest news, reviews, and guides for Windows and Xbox diehards.
- OpenSettings.
- Click onSystem.
- Click theStorage pageon the right side.
- Click "Advanced storage settings" under the "Storage management" section.
- Click the "Disks & volumes" setting.
- Select the volume of the virtual drive and click the Properties button.
- Click the "Turn on BitLocker" option at the bottom of the page.
- Select thevaultdrive under the "Fixed data drives" section
- Click the"Turn on BitLocker"option.
- Check the"Use a password to unlock the drive"option.
- Create a password to protect your folders inside the drive.
- Click theNextbutton.
- Select the"Save to your Microsoft account"option.
- Quick note:Using the Microsoft account is the most convenient option. However, you can choose any of the other available options.
- Click theNextbutton.
- Select the"Encrypt used disk space only"option.
- Click theNextbutton.
- Select theCompatible modeoption.
- Click theNextbutton.
- Click theStart encryptionbutton.
- Click theClosebutton.
After you complete the steps, the virtual drive will be secured with a password.
Unlock password-protected folder
To open a folder with a password on Windows 11, use these steps:
- OpenFile Explorer.
- Open the folder with thevault.vhdxfile.
- Double-click theVHD(VHDX) file to mount it to File Explorer.
- Quick note:If you receive a "is not accessible" and "Access is denied" message, this is normal behavior because you mounted the drive but haven't unlocked it with the password yet.
- Click onThis PCfrom the left navigation pane.
- Double-click the drive to open the sign-in page under the "Devices and drives" section.
- Type the password to unlock the drive.
- Quick tip:If you can't remember the password, click on"More options," select theEnter recovery keyoption, and type the 48-digit recovery key available on your Microsoft account.
- Click theUnlockbutton.
Once you complete the steps, the drive will open, allowing you to add, modify, and remove your sensitive files.
Lock password-protected folder
To close and lock a folder with a password on Windows 11, use these steps:
- OpenFile Explorer.
- Click onThis PCfrom the left navigation pane.
- Under the "Devices and drives" section, right-click the BitLocker drive, and select theEjectoption.
After you complete the steps, the folder (drive) will lock, and the password will be required to unlock the contents again.
More resources
For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:
- Windows 11 on Windows Central — All you need to know
- Windows 10 on Windows Central — All you need to know
Mauro Huculak
Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.