How to Password Protect a Windows 11 Folder (Step-by-Step)
If you want to password-protect a folder on Windows, there are several ways to do it. While only Windows 11 Pro offers a built-in feature to lock folders with a password directly, users of other versions can still secure their folders using reliable alternatives. These include built-in tools, file compression with password protection, and trusted third-party software.
How to lock folder with password in Windows 11?
Table of contents
1. Use a Password-Protected ZIP Archive
One of the easiest ways to secure a folder is by compressing it into a ZIP file and adding a password using WinZip.
Steps:
- Download and install WinZip from the official website.
- Right-click your folder and select WinZip > Add to Zip file.

- In the Add window, check Encrypt files and choose AES-256 encryption.
- Set your password and click Add to finalize.
Windows’ default ZIP feature doesn’t support password protection. WinZip offers a secure and user-friendly alternative compatible with both Windows 10 and 11.
For advanced options like file splitting or secure sharing, WinZip also includes premium features. If you’re on Windows 11, follow this guide for password protecting ZIP files to explore more.
👉 Download WinZip and start protecting your folders with strong encryption.
2. Create a Lock Script Using Notepad
- Open Notepad on your PC.
- Copy and paste the script below:
cls
@ECHO OFF
title Folder Locker
if EXIST "Private" goto UNLOCK
if NOT EXIST Locker (
md Private
echo Folder created successfully
)
:CONFIRM
echo Are you sure you want to lock the folder? (Y/N)
set /p "choice="
if /I "%choice%"=="Y" goto LOCK
if /I "%choice%"=="N" goto END
echo Invalid choice
goto CONFIRM
:LOCK
attrib +h +s Private
echo Folder locked
goto END
:UNLOCK
echo Enter password to unlock folder:
set/p "pass="
if NOT %pass%==YOURPASSWORD goto FAIL
attrib -h -s Private
echo Folder unlocked
goto END
:FAIL
echo Incorrect password
goto END
:END
- Replace YOURPASSWORD with your actual password (no spaces).
- Click File > Save As, set Save as type to All Files, and name it:
locker.bat- Double-click the
locker.batfile. A new folder named Private will appear. - Add your files inside the Private folder.
- Run locker.bat again and press
Yto lock the folder. It will disappear. - To unlock, run locker.bat, enter your password, and the folder will reappear.
You can also password protect the Notepad file itself if you want to secure the script.
This method is simple but not foolproof. It doesn’t offer strong protection against experienced users.
3. Use Built-In Folder Encryption (Windows Pro Only)
If you use Windows 10 or 11 Pro, you can use the built-in Encrypting File System (EFS) to secure folders.
- Right-click the folder, select Properties.
- Click Advanced, then check Encrypt contents to secure data.
- Apply and confirm the changes.
This links folder access to your Windows user account instead of a password. For network sharing, make sure password-protected sharing is turned off in Windows 10 or Windows 11 as needed.
4. Use NordLocker to Lock Folders with a Password
The easiest way to fully password-protect a Windows folder is by using a trusted encryption tool from the makers of NordVPN.
How to use NordLocker:
- Download and install NordLocker from the official website.
- Create your Nord Account and set a secure master password.
- Launch the app and drag your folder into the NordLocker window.
- Your folder is now encrypted and locked with your password.
- To access it, just open NordLocker and log in with your password.
Why choose NordLocker:
NordLocker offers strong end-to-end encryption, works seamlessly on Windows 10 and 11, and supports both local and cloud-secured folders. It includes a free 3GB plan, with upgrades available for more storage and features.
👉 Try NordLocker for free and start protecting your sensitive folders today.
If you’re working with external storage, also check out USB stick password protection software for compatible options.
Final Tips
- Windows does not natively support password protection for folders.
- ZIP compression with encryption is the easiest workaround.
- For stronger security, use trusted third-party tools like NordLocker.
- Avoid hiding folders as a substitute—it offers no real protection.
FAQs
No. Windows doesn’t offer native password protection for folders. You’ll need to use ZIP encryption or third-party apps.
Yes. You can encrypt and access files locally without cloud syncing.
NordLocker offers a free 3GB plan and is one of the most secure and user-friendly options available.
Yes, if you use AES-256 encryption with tools like 7-Zip or WinRAR.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
User forum
0 messages