How to password protect a folder on Windows 10
If you want to protect a folder with a password, you won't find such a feature on Windows 10, but you can this alternative.
Although Windows 10 doesn't have the option to protect folders and files with a password, it doesn't mean your data isn't secure. One of the reasons why you can't apply a password to a folder is that your account is already protected from unauthorized access with a password (and even encryption if you use BitLocker).
However, if you have priceless pictures, bank information, and other business documents you feel would be more secure using a password, you can use a combination of a virtual hard disk and BitLocker to password-protect folders and files. And you can do this without third-party tools or complicated scripts, which are probably not as secure as using the Windows 10 built-in encryption feature.
In this how-to guide, we'll walk you through the steps to protect a folder with a password using a virtual hard disk and BitLocker available with the professional version of Windows 10.
How to protect a folder with password on Windows 10
Windows 10 doesn't include an option to add a password to a folder, but you can set up a virtual hard drive with BitLocker, enabling you to mimic the same password protection experience and extra security.
Create virtual hard disk
To create a virtual hard disk on Windows 10, 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, folder_vault.
- Click the Save button.
- Under the "Virtual hard disk size" section, specify the space to reserve for storage. For example, 8GB, 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 so the storage will grow as you save files.
- Click the OK button.
- Right-click the "Disk x," and select the Initialize Disk option.
- Check the new Disk x.
- Select the "MBR (Master Boot Record)" option.
- Click the OK button.
- Right-click the "Unallocated space" and select the "New Simple Volume" option.
- Click the Next button.
- Use the default settings for the volume size.
- Click the Next button.
- Use the "Assign the following drive letter" drop-down menu to select a letter for the new drive.
- 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, folder_vault.
- Check the "Perform a quick format" option.
- Unless necessary, clear the "Enable file and folder compression" option.
- Click the Next button.
- Click the Finish button.
Once you complete the steps, you'll end up with a virtual hard disk that you can treat as a folder and password protect using BitLocker.
Get the Windows Central Newsletter
All the latest news, reviews, and guides for Windows and Xbox diehards.
Enable BitLocker on virtual hard disk
To set up BitLocker on a virtual hard disk on Windows 10, use these steps:
- Open Control Panel.
- Click on System and Security.
- Click on BitLocker Drive Encryption.
- Under the "Fixed data drives" section, select the folder_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.
- Click the "Save to a file" button.
- Select a location to store the recovery key.
- Quick tip: If you forget the password or lose the recovery key, you won't be able to recover your files, so make sure to keep this file in a secure place. You can also use the option to save the password on your Microsoft account.
- Click the Save button.
- Click the Next button.
- Select the "Encrypt used disk space only" option.
- Click the Next button.
- Select the Compatibility mode option.
- Click the Next button.
- Click the Start encryption button.
- Click the Close button.
After you complete the steps, you can begin using the virtual disk as a folder to protect your content with a password.
Lock and unlock folder
Once you created a virtual drive and configured BitLocker, you'll need to know a few steps to lock and unlock your files and folders.
Unlock folders with password
To access folders and files protected with a password on Windows 10, use these steps:
- Open File Explorer.
- Browse to the folder with the folder_vault.vhd 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 you haven't unlocked it with the password yet.
- Click on This PC from the left pane.
- Under the "Devices and drives" section, double-click the drive to open the sign-in page.
- Type the password to unlock the drive with your important files and folders.
- Quick tip: If you can't remember the password, click the "More options" option, click the "Enter recovery key" option, and type the 48-digit recovery key available in the text file that you should have saved when setting up BitLocker on the virtual hard disk.
- Click the Unlock button.
Once you complete the steps, you will be able to access your important files and folders.
Lock folders with password
To lock the folder again on Windows 10, use these steps:
- Open File Explorer.
- Click on This PC from the left pane.
- Under the "Devices and drives" section, right-click the BitLocker drive, and select the Eject option.
After you complete the steps, the folders will remain encrypted and protected. The next time you access your files and folders, you'll need to follow the unlock instructions, which include entering the password again.
The best part about using a virtual hard drive with BitLocker to add a password to a folder is that you can continue to unlock your files on the same or different computer using the above steps.
More resources
For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources:
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.