How to protect folder with password on Windows 11

Windows 11 add password to folder
Windows 11 add password to folder (Image credit: Mauro Huculak)

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:

  1. Open Settings.
  2. Click on System.
  3. Click the Storage page on the right side.
  4. Click on "Advanced storage settings" under the "Storage management" section.
  5. Click the Disks & volumes setting.

(Image credit: Mauro Huculak)
  1. Click the Create VHD button.

(Image credit: Mauro Huculak)
  1. Choose a descriptive name for the virtual drive.
  2. Click the Browse button.
  3. Specify a location to store the virtual drive.
  4. Confirm the drive size (in gigabytes). For example, 10GB.
  5. Select the VHDX option.
  6. Select the Dynamically expanding option.

(Image credit: Mauro Huculak)
  1. Click the Create button.
  2. Select the "GPT (GUID Partition Table)" option.

(Image credit: Mauro Huculak)
  1. Click the Initialize button.
  2. Confirm a label for the virtual drive as you want it to appear on File Explorer.
  3. Choose the drive letter you want to appear in the system.
  4. Select the "NTFS" option for the "File System" setting.
  5. Click the Format button.

Format option for virtual drive

(Image credit: Mauro Huculak)

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:

  1. Open Settings.
  2. Click on System.
  3. Click the Storage page on the right side.
  4. Click "Advanced storage settings" under the "Storage management" section.
  5. Click the "Disks & volumes" setting.

(Image credit: Mauro Huculak)
  1. Select the volume of the virtual drive and click the Properties button.

(Image credit: Mauro Huculak)
  1. Click the "Turn on BitLocker" option at the bottom of the page.

(Image credit: Mauro Huculak)
  1. Select the vault drive under the "Fixed data drives" section
  2. Click the "Turn on BitLocker" option.

(Image credit: Mauro Huculak)
  1. Check the "Use a password to unlock the drive" option.
  2. Create a password to protect your folders inside the drive.

(Image credit: Mauro Huculak)
  1. Click the Next button.
  2. Select the "Save to your Microsoft account" option. 

(Image credit: Mauro Huculak)
  • Quick note: Using the Microsoft account is the most convenient option. However, you can choose any of the other available options.
  1. Click the Next button.
  2. Select the "Encrypt used disk space only" option.

(Image credit: Mauro Huculak)
  1. Click the Next button.
  2. Select the Compatible mode option.

(Image credit: Mauro Huculak)
  1. Click the Next button.
  2. Click the Start encryption button.
  3. 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:

  1. Open File Explorer.
  2. Open the folder with the vault.vhdx file.
  3. Double-click the VHD (VHDX) file to mount it to File Explorer. 

(Image credit: Mauro Huculak)
  • 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.
  1. Click on This PC from the left navigation pane.
  2. Double-click the drive to open the sign-in page under the "Devices and drives" section.
  3. Type the password to unlock the drive. 

(Image credit: Mauro Huculak)
  • Quick tip: If you can't remember the password, click on "More options," select the Enter recovery key option, and type the 48-digit recovery key available on your Microsoft account.
  1. Click the Unlock button.

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:

  • 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.

(Image credit: Mauro Huculak)

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:

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.