On Windows 11, you won’t find a feature to add a password to a folder to protect your files because your account is already protected with a password and encryption, and it’s assumed that you will be the only one using it.
However, if you share the computer with others, are concerned about unauthorized access, or want to add another layer of security, you can use the virtual hard disk feature along with BitLocker to protect files and folders with a password on Windows 11.
This guide will walk you through the steps 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. However, you can use the virtual drive and BitLocker features to create a drive you can secure 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:
- Open Start.
- Search for Disk Management and click the top result to open the app.
- Click the Action menu.
- Click the Create VHD option.
- Click the Browse button to select a location to store the virtual disk.
- Specify a name for the drive — for example, vault.
- Click the Save button.
- Under the “Virtual hard disk size” section, specify the space you want to reserve for storage. For instance, 10GB, but you can use any amount based on the content you want to protect.
- (Optional) Under the “Virtual hard disk format” section, select the VHDX option.
- Select the Dynamically expanding option to allow the storage will only grow as you save files.
- Click the OK button.
- Right-click the newly created virtual disk and select the Initialize Disk option.
- Check the newly created disk.
- Select the GPT option.
- Click the OK button.
- Right-click the “Unallocated space” and select the New Simple Volume option.
- Click the Next button.
- Use the default volume size settings.
- Click the Next button.
- Use the “Assign the following drive letter” drop-down menu to select a new one.
- Click the Next button.
- Use the “File system” drop-down menu, and select the NTFS option.
- Use the “Allocation unit size” drop-down menu, and select the Default option.
- In the “Value label” field, type a descriptive name for the drive. For example, vault.
- Check the Perform a quick format option.
- Click the Next button.
- Click the Finish button.
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.
Set up BitLocker on virtual drive
To set up BitLocker to protect the drive with a password on Windows 11, use these steps:
- Open Settings.
- Click on System.
- Click the Storage page on the right side.
- Under the “Storage management” section, click on Advanced storage settings.
- 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.
- Under the “Fixed data drives” section, select the vault drive.
- 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 the Next button.
- 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 the Next button.
- Select the “Encrypt used disk space only” option.
- Click the Next button.
- Select the Compatible mode option.
- Click the Next button.
- Click the Start encryption button.
- Click the Close button.
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:
- Open File Explorer.
- Open the folder with the vault.vhdx file.
- Double-click the VHD (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 on This PC from the left navigation pane.
- Under the “Devices and drives” section, double-click the drive to open the sign-in page.
- Type the password to unlock the drive.
- Quick tip: If you can’t remember the password, click the More options link, select the Enter recovery key option, and type the 48-digit recovery key available on your Microsoft account. (opens in new tab)
- Click the Unlock button.
Once you complete the steps, the drive will open, allowing you to add, modify, and remove your sensitive files.
Lock folder
To close and lock a folder with a password on Windows 11, use these steps:
- Open File Explorer.
- Click on This PC from the left navigation pane.
- Under the “Devices and drives” section, right-click the BitLocker drive, and select the Eject option.
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: