How to Lock a Folder in Windows 10 Without Software

Updated 2026 14 min read
Quick Answer

To lock a folder on Windows 10 natively, right-click the folder, select Properties, click Advanced, and check Encrypt contents to secure data. Note that this feature (EFS) is tied to your Windows user account and is only available in Windows 10 Pro, Enterprise, and Education editions. Home edition users must use a CMD batch script workaround or third-party folder lock software.

Whether you share a PC with family members or use a laptop for work, keeping sensitive documents, financial records, or private photos hidden from prying eyes is essential. Unfortunately, Windows 10 doesn't offer a simple "right-click and add password" option for individual folders.

However, you do have options. Depending on your version of Windows 10 and your comfort level with technical settings, you can secure your folders using built-in encryption, command-line scripts, or dedicated security applications. This guide covers all the reliable methods.

Method 1: Built-in Folder Locking (EFS)

Windows 10 Pro and Enterprise editions include the Encrypting File System (EFS). This is the official, native way to "lock" a folder. It works by tying the encryption to your specific Windows user account. If someone else logs into the computer with a different account, they will not be able to open the files.

Requirements: Windows 10 Pro, Enterprise, or Education. This method is not available on Windows 10 Home.

Step-by-Step Instructions:

  1. Locate the folder you want to protect in File Explorer.
  2. Right-click the folder and select Properties.
  3. In the General tab, click the Advanced button.
  4. Check the box that says Encrypt contents to secure data.
  5. Click OK, then click Apply on the main Properties window.
  6. Windows will ask if you want to encrypt just the folder or the folder, subfolders, and files. Choose Apply changes to this folder, subfolders and files and click OK.

You'll notice a small lock icon appear on the folder icon. It's crucial to understand that you won't be prompted for a password when you open the folder. The protection works transparently in the background for your user session. However, it's highly recommended to back up your encryption key when Windows prompts you, as losing access to your user account means losing access to these files permanently.

Windows File Explorer interface for locating folders before applying EFS encryption

Method 2: Lock Folder Without Software Using CMD

If you are using Windows 10 Home (which lacks EFS) and want to lock a folder without installing any third-party tools, you can use a classic batch file script. This method doesn't technically encrypt the files; rather, it hides the folder and requires a password to unhide it via the command prompt.

Caveat: This method is suitable for basic privacy against casual users (like kids or roommates). A tech-savvy person can bypass it by editing the batch file or enabling "Show hidden files" in Windows settings.

How to create the CMD lock:

  1. Create a new folder where you want to store your hidden files.
  2. Open Notepad.
  3. Copy and paste the exact code block below into Notepad.
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Private 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 Private "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}" Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End
  1. Find the line that says YOUR_PASSWORD_HERE and replace it with your desired password. Leave the spaces before and after.
  2. Go to File > Save As.
  3. Change "Save as type" to All Files (*.*).
  4. Name the file locker.bat and save it in your initial folder.
  5. Double-click locker.bat. A new folder named "Private" will appear.
  6. Move your sensitive files into the "Private" folder.
  7. Double-click locker.bat again. A command window will ask if you're sure. Type Y and press Enter. The "Private" folder will vanish.
  8. To access it again, run the batch file and enter your password.

Troubleshooting & Common Mistakes

Native methods can be finicky. Here are the most common issues users run into when trying to lock folders manually on Windows 10.

Problem Common Cause Solution
"Encrypt contents" is grayed out You are using Windows 10 Home Edition. EFS is not supported on Home. Use the CMD method or a software alternative.
CMD locked folder is visible "Show hidden operating system files" is checked in Folder Options. The CMD method relies on hiding attributes. Uncheck this setting, or use real encryption.
Lost EFS encryption key Windows profile corrupted or OS reinstalled without key backup. Files are permanently lost. Always export your EFS certificate when prompted.

Windows 10 passed its October 2025 support milestone, so this is also a good time to think about how your protected data will move with you. Account-bound encryption and simple hiding tricks can be awkward during a PC migration; a separate encrypted container can be easier to carry forward when you change devices.

When a Dedicated Folder-Security Tool Makes Sense

The main reason to install a separate tool is not simply to make a folder disappear. It is to choose a stronger protection model: encrypted storage, controlled visibility, safer file disposal, or access to protected data on more than one device.

AES-256 Locker Encryption Windows 10 & 11 (64-bit) Cloud Locker Options Portable Encrypted Storage
Folder Lock 10 Lockers screen showing desktop and cloud encrypted storage options
[ Suggested image: Folder Lock 10 dashboard showing Desktop and cloud Lockers ]

Folder Lock 10 is the better fit when the goal is encryption rather than concealment. Its Locker system stores selected data inside AES-256 encrypted storage, while a separate folder-protection mode can hide or deny access to files, folders, and drives without converting them into an encrypted Locker.

The Windows edition also connects protected storage with Dropbox, Google Drive, and OneDrive. That matters if you want encrypted data to follow you between supported devices instead of remaining tied to one Windows profile.

Free tier

  • Up to 1 GB in a Locker.
  • Sync across up to 2 devices.
  • Includes mobile apps and the Secrets area.
  • File shredding and Windows history cleaning are included.
  • Folder protection and Portable Lockers are not included in the supplied Free-vs-Pro table.

Pro tier — listed at $39.95

  • Removes the Locker capacity limit shown for Free.
  • Raises synced-device support to 5.
  • Adds encrypted-file sharing to authorized users.
  • Adds folder protection and Portable Lockers.
  • Keeps the privacy utilities available in the Free tier.
Folder Lock 10 Pro product boxshot for Windows file encryption software

Plan limits and prices can change. Treat the figures above as a buying snapshot and confirm them before checkout.

Choose the Protection Model, Not Just the Product Name

Several tools in this product family use the words “lock” or “protect,” but they are not interchangeable. The useful question is what you need to stop: reading, editing, deletion, casual discovery, or access to unencrypted data.

Option What it actually does Best fit Important limit
CMD batch method Changes folder attributes and uses a script-controlled password check. Low-stakes privacy from casual browsing. The data is not cryptographically encrypted.
Windows EFS Encrypts data for the Windows account that owns the encryption certificate. Built-in protection on supported Windows 10 editions. Recovery depends on the Windows account and certificate backup.
Folder Lock 10 Offers AES-256 encrypted Lockers plus a separate hide/block-access feature for Windows folders. Encryption, cloud-backed Lockers, portable encrypted storage, sharing, and privacy utilities. The current Windows 10/11 product material specifies 64-bit variants; some core folder features sit behind Pro.
Folder Protect Applies access policies to data without serving as an encryption product. Keeping content usable while blocking viewing, changes, or deletion; also protecting drives, programs, or selected file types. Do not treat it as a substitute for encrypted storage.
Folder Lock 7 Lite Provides the legacy Lock Folders capability without the encryption functions of the full Folder Lock 7 package. Users who only need basic lock-and-hide behavior. No Locker encryption in the Lite edition.
Folder Lock 10 main dashboard for managing encrypted lockers and security tools

Why Folder Protect is a different kind of tool

Folder Protect is built around permission-like rules for data that may still need to remain in normal use. You can configure an item so it cannot be opened, cannot be seen, cannot be edited, or cannot be deleted. Those rules can be applied to individual files, full folders, drives, installed programs, or groups of files selected by extension.

Folder Protect main window for configuring Windows file and folder access controls

That makes it particularly useful on shared Windows PCs where the requirement is more specific than “encrypt this folder.” For example, a reference folder can remain readable while being protected from edits or deletion.

Folder Protect protection list showing managed files and Windows access rules
Windows 10 caveat: the supplied Folder Protect version history says Stealth Mode was disabled on Windows 10 because of OS limitations. Other product pages in the same research set still describe Stealth Mode, so the safest wording is to avoid promising that feature on Windows 10 unless the installed build is checked first.

The supplied compatibility notes place Folder Protect on Windows desktop releases from 7 onward through 8, 10, and 11, plus several Windows Server editions; FAT32 and NTFS are also listed as supported file systems.

Folder Lock 10 goes beyond a single Windows PC

The wider Folder Lock ecosystem is useful when your protected material needs to travel. The desktop products can place encrypted data in local or cloud-connected Lockers, while the mobile editions focus on private media, documents, notes, wallets, and secure access features.

Windows

Folder Lock 10 supports Windows 10 and Windows 11 on 64-bit systems. It combines encrypted Lockers with optional folder hiding/access blocking, portable storage, shredding, history cleanup, cloud Lockers, and cross-device workflows.

macOS 13+

The Mac edition provides AES-256 encrypted local and cloud Lockers, sync to supported devices, encrypted sharing in Pro, and a Secrets area. The supplied plan table shows 1 GB per Locker type and 2 synced devices on Free, versus unlimited Locker capacity and 5 synced devices on Pro.

Folder Lock 10 for macOS dashboard showing encrypted locker management
iPhone / iPad

The iOS app can secure private media, documents, audio, notes, and wallet data. It also includes cloud backup, attempted-access monitoring, a private browser, cross-platform decryption, and Wi-Fi transfer between iOS and a PC.

Folder Lock iOS app screen for protected private files and mobile data
Android

The Android app covers protected media and files, notes, wallets, cloud backup, access-attempt logging, a private browser, and cross-platform decryption. Android additionally includes an App Locker for restricting other apps on the device.

Practical takeaway: mobile features are useful companions to the desktop ecosystem, but they should not be described as equivalent to locking a normal Windows folder. Their role is protecting content inside the mobile app and accessing supported encrypted data across devices.

Folder Lock 10: useful extras beyond encryption

  • Portable Lockers: create encrypted storage intended to travel on removable media instead of leaving sensitive files loose on a USB drive.
  • Folder Lock 10 Portable Lockers screen for encrypted storage on removable drives
  • Cloud Lockers: use Dropbox, Google Drive, or OneDrive as the sync location while Folder Lock handles the encrypted Locker layer.
  • Selective sharing: Pro can grant authorized people their own access to shared encrypted material instead of circulating one common password.
  • Secrets: keep structured private information such as passwords, notes, and wallet-style records inside the application.
  • Shred and history cleanup: permanently dispose of selected data and clear supported Windows privacy traces when simple deletion is not enough.

Frequently Asked Questions

Yes, but the result depends on the method. EFS can encrypt data on supported Windows editions, while the CMD technique in this guide is mainly a concealment trick. Neither behaves like a standalone password vault that you can move independently between devices.
It supports both approaches, but through different features. Lockers provide AES-256 encrypted storage. The Protect Folders function is for hiding or restricting access to normal files, folders, and drives without placing them in an encrypted Locker.
In the supplied plan comparison, Free is limited to a 1 GB Locker and 2 synced devices. Portable Lockers, folder protection, and encrypted sharing are shown as Pro features. Shredding, Windows history cleanup, mobile apps, and Secrets are shown on the Free plan.
The current Windows product material supplied for this page lists Windows 10 and Windows 11 on 64-bit variants. If you have a 32-bit installation, confirm support before installing rather than assuming compatibility.
Choose Folder Lock when encryption, Lockers, cloud sync, portable encrypted storage, or privacy utilities are the priority. Folder Protect is an access-control product: it is designed to stop viewing, access, modification, or deletion while letting you choose the rule for each protected item.
There are current Folder Lock editions for all four platforms in the supplied research. The exact feature set is not identical on every device: the desktop versions emphasize encrypted Lockers and sync, iOS adds Wi-Fi transfer, and Android adds an App Locker.
No. The Lite material describes it as a reduced Folder Lock 7 option that keeps the lock-folder function but leaves out encryption. Use the full Folder Lock product when cryptographic protection is required.
For confidential files that should remain unreadable if copied, favor encryption. If other people must still read a file but should not change or delete it, Folder Protect’s granular access rules are a closer fit. For casual privacy only, the CMD method may be sufficient, but it should not be mistaken for encryption.

Final Verdict

Use the built-in route when account-based Windows encryption meets your needs. Use the CMD method only when you understand that it is hiding, not encryption.

If the files need protection that survives ordinary copying, removable storage, cloud sync, or movement between devices, an encrypted Locker is the stronger model. If the real requirement is to let people see a file while preventing edits or deletion, Folder Protect is the more precise tool.

That distinction is more important than choosing whichever product has “lock” in its name.


Download Folder Lock for Windows