How to Lock a Folder in Windows 11 with Password

To lock a folder on Windows 11, you have three main paths depending on your Windows edition: writing a custom batch script via CMD (free but low security), using Windows BitLocker/EFS (requires Windows 11 Pro/Enterprise and TPM 2.0), or utilizing third-party folder lock software (works on all editions, including Home).
Securing local files is more complex on Windows 11 than on mobile devices. While phones have built-in "Secure Folders," Windows 11 approaches file security either through full-drive encryption or system-level permissions. If you share a PC, work in a remote environment, or just want to keep personal documents away from prying eyes, learning how to make a locked folder on Windows 11 is essential.
In this guide, we break down the built-in operating system methods (including the popular CMD script), explain why Windows 11 Home users face unique hurdles, and explore when dedicated software is the right choice.
Requirements: Windows 11 Editions & TPM 2.0

Before attempting to lock specific folders in Windows 11, it is crucial to check your Windows edition. Microsoft segments security features based on the version of Windows you purchased.
Windows 11 Pro/Enterprise: Includes BitLocker and the Encrypting File System (EFS). You can right-click a folder, select Properties > Advanced, and check "Encrypt contents to secure data".
Windows 11 Home: Does not include EFS or standard BitLocker. The "Encrypt contents" checkbox will be greyed out. Home users must rely on Device Encryption (which locks the whole drive, not individual folders) or use third-party software to lock a folder permanently.
Furthermore, Windows 11 heavily relies on TPM 2.0 (Trusted Platform Module) and Secure Boot. If you bypass these requirements to install Windows 11 on unsupported hardware, native encryption methods like BitLocker may fail or lock you out permanently. Ensure your BIOS settings have TPM enabled before proceeding with OS-level encryption.
Windows 11 Folder Lock: Built-in vs Third-Party Methods
We have tested the three most common ways to password protect a folder in Windows 11. Select a method below to view the step-by-step instructions.

How to Lock a Folder Using CMD in Windows 11
If you are looking for how to lock a folder on Windows 11 without software, the traditional Batch (.bat) script method is the most common approach. It creates a hidden folder that only appears when you run the script and enter a password.
This method does not encrypt your files. It only hides the folder and requests a password via the command prompt. Anyone with basic IT knowledge can open the .bat file in Notepad, read your password in plain text, and access the hidden folder. Use this only to hide files from casual users (like young children), not for sensitive data.

- Create a new folder where you want your locked files to reside.
- Inside that folder, right-click an empty space, select New > Text Document.
- Open the text document and paste the following code:
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Locker "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
echo Folder locked
goto End
:UNLOCK
echo Enter password to Unlock folder
set/p "pass=>"
if NOT %pass%==YOUR-PASSWORD-HERE goto FAIL
attrib -h -s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}"
ren "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" Locker
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Locker
echo Locker created successfully
goto End
:End
- Find the line that says
if NOT %pass%==YOUR-PASSWORD-HERE goto FAIL. - Replace
YOUR-PASSWORD-HEREwith your desired password. - Click File > Save As. Name the file
FolderLock.batand change "Save as type" to All Files. - Double-click the
FolderLock.batfile. A new folder named "Locker" will appear. Move your files into it. - Double-click the script again, type "Y", and press Enter to lock and hide the folder.
Using EFS (Encrypting File System)
For Windows 11 Pro, Education, and Enterprise users, EFS provides a native way to secure files. It links the encryption to your Windows user account rather than a standalone password.

- Right-click the folder you want to protect and select Properties.
- Under the General tab, click the Advanced... button.
- Check the box for Encrypt contents to secure data.
- Click OK, then Apply. Windows will ask if you want to encrypt just the folder or all subfolders and files. Choose your preference.
- Backup your encryption certificate when Windows prompts you. (Crucial: If you reinstall Windows without this backup, your files will be permanently unrecoverable).
The catch: EFS does not ask for a password when you open the folder. It automatically unlocks when you are logged into your Windows account. It only protects data if someone logs into a different user account or steals your hard drive. It is not an "app lock" or a traditional folder password tool.
Using Dedicated Folder Security Software
Dedicated security software is useful when you want more than a hidden directory or account-based Windows encryption. The main advantage is choice: you can keep a folder out of sight, block access to it, or place sensitive files inside encrypted storage depending on the level of protection you need.
Folder Lock 10 combines two different approaches on Windows: encrypted Lockers for data that should remain unreadable without authorization, and a separate folder-protection feature for files, folders, and drives that you want locked and hidden without converting them into encrypted storage.
That distinction matters on shared PCs. A visibility lock is convenient for everyday privacy, while encryption is the better fit for financial records, client material, backups, or portable data that could leave the computer.

Why Folder Lock 10 Fits Sensitive Windows 11 Data
Folder Lock 10 is the stronger option when the goal is not merely to conceal a folder, but to protect the contents themselves. It can create AES-256 encrypted Lockers, while also offering a separate lock-and-hide mode for Windows folders that do not need full encryption.
- ✓ Two protection modes: Choose encrypted storage for confidential files or use folder locking when you mainly need to block viewing and access.
- ✓ Cloud-aware encryption: The product can work with dedicated Lockers for Dropbox, Google Drive, and OneDrive so protected data can be synchronized through services you already use.
- ✓ Portable protection: Encrypted portable Lockers can be used for data that travels on USB or external storage rather than remaining on one PC.
- ✓ Extra privacy tools: Windows users also get utilities for secure deletion and clearing selected Windows activity traces.

What Folder Lock 10 Adds Beyond a Basic Folder Password
A simple password prompt answers only one question: who may open this folder? Folder Lock 10 covers a wider set of situations, including encrypted storage, Windows folder locking, removable media, cloud-backed Lockers, controlled sharing, and privacy cleanup.

| Capability | How it helps on Windows 11 | Best fit |
|---|---|---|
| Encrypted Lockers | Stores selected files inside AES-256 protected storage rather than relying only on Windows visibility or permissions. | Financial files, work records, identity documents, private archives. |
| Protect Folders | Locks and hides chosen files, folders, or drives without requiring you to place everything inside an encrypted Locker; the supplied Windows material also describes this protection as remaining active in Safe Mode. | Shared PCs and folders that need quick access control. |
| Cloud Lockers | Provides encrypted Locker workflows for OneDrive, Dropbox, and Google Drive, allowing protected data to move through supported cloud services. | People who work on more than one device. |
| Portable Lockers | Keeps protected data in an encrypted portable container for USB and external-drive use. | Files carried between computers or stored off-device. |
| Secure sharing | Allows authorized Folder Lock users to receive encrypted material through supported sharing workflows without handing over the sender's main password. | Remote teams, families, and controlled file exchange. |
| Secrets | Provides encrypted areas for private notes, saved credentials, and wallet-style records in addition to file protection. | People who want sensitive text and account details kept with their protected files. |
| Privacy utilities | Adds secure deletion, unused-space wiping, and Windows-history cleanup alongside storage protection. | Users who also want cleanup tools after sensitive work. |

Folder Lock 10 Free vs Pro
The supplied research distinguishes the plans as shown below. Commercial terms can change over time, so these numbers reflect the material provided for this update rather than a permanent pricing promise.

| Item | Free | Pro |
|---|---|---|
| Encrypted Locker capacity | Up to 1 GB | No storage ceiling stated in the supplied plan table |
| Synced devices | Up to 2 | Up to 5 |
| Encrypted file sharing | Not included | Included |
| Protect Folders | Not included | Included |
| Portable Lockers | Not included | Included |
| Shred Files | Included | Included |
| Clean History | Included | Included |
| Price shown in research | $0 | $39.95 |
Choosing Between Folder Lock 10, Folder Protect, and Folder Lock 7 Lite
These products overlap in name, but they are built around different protection goals. Picking the right one is easier when you separate encryption from access control.

| Product | Core approach | Platform scope in the research | Choose it when… |
|---|---|---|---|
| Folder Lock 10 | Encrypted Lockers plus Windows lock/hide controls, portable containers, cloud Lockers, sharing, and privacy utilities. | Windows, macOS, iOS, Android. | You need encryption or want protected data available across computers and mobile devices. |
| Folder Protect | Policy-style access control. You can independently block opening, visibility, editing, or deletion and apply protection to several Windows item types. | Windows. | You want granular rules around what another Windows user may do with files, folders, drives, programs, or selected file types. |
| Folder Lock 7 Lite | A reduced legacy edition centered on locking folders; the supplied material explicitly distinguishes it from the encryption features in the full product. | Windows. | You only need basic lock/hide behavior and do not require encrypted Lockers. |
Folder Lock 10 is the better match when confidentiality depends on encryption. Folder Protect is more specialized for controlling actions such as opening, seeing, changing, or deleting Windows data. Folder Lock 7 Lite is narrower still because its supplied description excludes encryption.
If You Also Use a Mac, iPhone, or Android Device
Folder Lock is not limited to a single Windows PC. The supplied product material covers Windows, macOS, iOS, and Android, with cross-device access built around the same broader Folder Lock ecosystem.

- macOS: the current material describes Folder Lock 10 for macOS 13 and later, with encrypted local and cloud Lockers plus multi-device synchronization.
- iPhone/iPad: the iOS app includes protected media and documents, private notes and wallets, cloud backup, access-attempt monitoring, a private browser, and Wi-Fi file transfer.
- Android: the Android app includes protected media and documents, notes and wallets, cloud backup, access-attempt monitoring, a private browser, and an app-locking feature.
The mobile feature sets are not identical, so a Windows feature should not automatically be assumed to exist on iOS or Android in the same form.
Important Product Limits to Know Before You Choose

The free Folder Lock 10 plan in the supplied material is capped at 1 GB of Locker storage and two synchronized devices. The same comparison places Protect Folders, Portable Lockers, and encrypted sharing in Pro.
Some cloud-sharing workflows also require both participants to use Folder Lock accounts and to work through the same supported cloud provider. Local encryption and decryption can be performed on the computer, while synchronization and cloud sharing naturally depend on the relevant online service.
The Folder Protect research contains older feature pages that describe a hidden-application mode, but its release history states that this capability was disabled because of Windows 10 limitations. For that reason, this guide does not present Stealth Mode as a current Windows 11 benefit.
Troubleshooting Locked Folders in Windows 11
If you encounter issues while trying to secure your folders, consult this matrix of common Windows 11 file security errors.

| Problem | Common Cause | Fix / Next Step |
|---|---|---|
| "Encrypt contents to secure data" is greyed out. | You are using Windows 11 Home edition, which does not support EFS. | Use a Windows edition that supports the feature, or choose dedicated software with its own folder-protection or encryption workflow. |
| CMD Batch script password is visible to others. | Batch files are uncompiled text documents; anyone can right-click and "Edit". | Do not use CMD scripts for sensitive data. Use real AES encryption tools. |
| Lost EFS encryption certificate after resetting Windows. | Windows reinstallation generates a new user SID, wiping the old EFS keys. | Data is permanently lost unless you backed up the .pfx certificate file beforehand. |
| Cannot access network/shared folder. | NTFS permissions are conflicting with the folder lock state across users. | Check Windows Advanced Sharing settings or use multi-user lock software. |
| A Folder Lock feature is missing in the free plan. | Some capabilities are reserved for Pro in the supplied plan comparison. | Check the Free vs Pro table above before troubleshooting the installation; Protect Folders, Portable Lockers, and sharing are listed as Pro features. |
Frequently Asked Questions

Does Windows 11 have built-in folder locking?
No, Windows 11 does not have a native "right-click to password protect" feature for individual folders. It offers full-drive encryption (BitLocker) and user-account-based encryption (EFS for Pro users), but it lacks a simple password-prompt system for single directories without third-party software.
How to lock a folder on Windows 11 Home edition?
Because Windows 11 Home lacks BitLocker and EFS, your options are limited to the CMD batch script workaround (which is insecure) or downloading dedicated third-party security software to encrypt and password-protect your directories.
Is folder encryption the same as folder locking in Windows 11?
No. Folder locking typically restricts access and hides the folder, requiring a password to open it. Encryption scrambles the actual data inside the files so that even if a hacker bypasses the lock, they cannot read the raw data. Premium tools do both simultaneously.
Can I lock a folder with a password in Windows 11 without third-party software?
Only by using the CMD batch file method, which creates a fake locker folder. However, this is easily bypassed by anyone who opens the batch file in a text editor. For genuine security, third-party software is required.
What happens to locked folders during a Windows update?
Standard Windows updates do not affect locked folders. However, if you perform a clean installation or a major OS reset and are using EFS, you will lose access to your encrypted folders unless you have backed up your encryption certificates. Third-party software lockers are generally safer during OS migrations provided you remember your master password.
Can I disable BitLocker on Windows 11?
Yes. You can disable BitLocker by searching for "Manage BitLocker" in the Start Menu and clicking "Turn off BitLocker". Be aware that decrypting your drive may take a significant amount of time depending on the size of your disk.
Is Folder Lock 10 Free enough for basic use?
It can be useful for testing the encrypted Locker workflow and includes a 1 GB Locker allowance with synchronization on two devices in the supplied comparison. The same material places Protect Folders, Portable Lockers, and encrypted sharing in Pro, so users who need those Windows-focused features would need the paid tier.
How do Folder Lock 10 and Folder Protect serve different needs?
Folder Lock 10 is a broader security suite built around encrypted Lockers as well as lock-and-hide protection, portable storage, cloud Lockers, sharing, and privacy tools. Folder Protect focuses more narrowly on Windows access rules, including separate controls for opening, visibility, modification, and deletion.
Does Folder Lock work outside Windows?
Yes. The supplied product material includes versions for macOS, iOS, and Android in addition to Windows. The exact feature set varies by platform, so mobile-specific capabilities should be checked separately rather than assumed to match the desktop app.
Can Folder Lock protect files stored in Google Drive, Dropbox, or OneDrive?
The Folder Lock 10 material describes dedicated cloud Locker workflows for Dropbox, Google Drive, and OneDrive. These are designed to keep the protected version of the data encrypted while the cloud service handles storage and synchronization.
Does Folder Lock 7 Lite encrypt files?
No. The supplied description positions Folder Lock 7 Lite as a reduced version that keeps the folder-locking function but leaves out the encryption features found in the full product.
Is Folder Protect Stealth Mode a current Windows 11 feature?
This guide does not treat it as one. Although older Folder Protect pages describe Stealth Mode, the supplied release history says that the capability was disabled because of Windows 10 limitations, and the research does not clearly establish that it returned for Windows 11.