How to Lock a Folder in Windows 11

How to Lock a Folder in Windows 11

How to Lock a Folder in Windows 11: This article explains three methods to lock a folder in Windows 11, one built-in method and two third-party options, all of which are completely free.

How to Lock a Folder in Windows 11

The easiest way to lock a folder is by enabling encryption, which prevents other computer users from opening/viewing your files. You must log into your account to access the files in the folder you locked.

Built-in Method in Windows 11

This method is integrated into Windows 11, and it’s very easy to activate:

Select the folder you want to lock, right-click on it, and choose "Properties."

In the General tab, click on Advanced Options at the bottom.

Check the box for Encrypt contents to secure data.

تم تمييز علامة التبويب عام والزر خيارات متقدمة وتشفير المحتويات لتأمين البيانات على سطح مكتب Windows 11.

Highlight the General tab, the Advanced Options button, and the Encrypt contents to secure data option on the Windows 11 desktop.

Click "OK" to save, then "OK" again in the folder properties window.

Select Apply changes to this folder, subfolders, and files > OK to ensure that any folders within this folder are also locked.

تم تمييز تطبيق التغييرات على هذا المجلد والمجلدات الفرعية والملفات للمجلد.

The "Apply changes to this folder, subfolders, and files" option is highlighted for the folder.

You’re done! Windows 11 places a lock icon on the folder to indicate that it is encrypted behind your user password.

Now, if anyone wants to open the files in this folder, they must log in under your user account.

تم تمييز رمز القفل الموجود على مجلد Windows لإظهار أنه مجلد مقفل.

The lock icon on the Windows folder is highlighted to show that it is a locked folder.

Follow these steps to back up your file encryption key and avoid losing access to your locked files permanently.

To start, search for certmgr.msc in the windows.

Navigate to Personal > Certificates using the right pane.

Select the items that refer to Encrypting File System, right-click on the selection, and choose All Tasks > Export.

تم تمييز جميع المهام والتصدير في certmgr.

All tasks and export are highlighted in certmgr.

Proceed through the Certificate Export Wizard by clicking Next > Yes, export the private key > Next > Next (accept the default settings).

تم تحديد نعم، تصدير المفتاح الخاص في معالج تصدير الشهادات.

"Yes, export the private key" is selected in the Certificate Export Wizard.

Choose a password, enter the password for the private key, and then click Next.

تم تمييز منطقة كلمة المرور في معالج تصدير الشهادات.

The password area in the Certificate Export Wizard is highlighted.

Select Browse, name the PFX file, and save it in a location you can remember.

Click Next > Finish to complete the wizard. If you want to use the certificate in the future, open it from where you saved it.

How to Password Protect a Folder on Windows 11 with Third-Party Software

There is no built-in way in Windows 11 to set a unique password for each folder you want to lock; however, there are plenty of programs that can accomplish this task.

Here are two examples:

7-Zip

7-Zip is an archiving tool, meaning it can compress the folder while applying a password to it. You can share the locked folder with anyone, even if they don’t have 7-Zip installed, but the files inside the folder cannot be opened until the correct password is provided.

Download and install 7-Zip.

Right-click on the folder you want to lock, go to See more options > 7-Zip > Add to archive.

Make the following adjustments:

Change the archive format to 7z

Select Create SFX archive

Provide a password

Select Encrypt file names

تم تمييز كل من 7z وإنشاء أرشيف sfx ومربعات كلمة المرور وتشفير أسماء الملفات.

Both 7z and "Create SFX archive" and password boxes and "Encrypt file names" are highlighted.

Feel free to adjust other settings on that screen, such as the new file name and location or compression level.

Select OK to save and create the locked folder.

Now, you can open the newly created EXE file to see the password prompt; enter the password you created earlier to unlock the folder. This file can be shared with anyone, and they will receive the same password prompt.

7-تم تحديد مربع أدخل كلمة المرور المضغوط.

The "Enter password" prompt is highlighted.

The options we enabled above did not include the option to remove the original folder, ensuring that no one can access the original files.

Wise Folder Hider

Wise Folder Hider can hide a folder so that it is not visible on your computer like regular folders. It can also password-protect the folder so that if someone finds it, they cannot open it without providing that password. This program can secure your hidden folder behind two passwords.

Download and install Wise Folder Hider.

Initially, you will be prompted to create a password to log in; this is the first layer of security this program provides. You must enter this password first to use the program to unlock a locked folder later.

مطالبة إنشاء كلمة مرور لـ Wise Folder Hider.

The "Create Password" prompt for Wise Folder Hider.

In the "Hide File" tab, select "Hide Folder" at the bottom, choose the folder you want to hide, and then click "OK" to add it to the queue. We highlighted the "Secrets" folder so you can see the steps; obviously, you will choose your own folder(s).

تم تمييز زر إخفاء المجلد ومجلد الأسرار وزر موافق في Wise Folder Hider.

The "Hide Folder" button, "Secrets" folder, and "OK" button are highlighted in Wise Folder Hider.

Select the arrow and choose Set Password.

تم تمييز عنصر القائمة تعيين كلمة المرور في Wise Folder Hider.

The "Set Password" menu item in Wise Folder Hider is highlighted.

Enter the password in the prompt, select OK to save it, then OK again in the confirmation box.

مطالبة تعيين كلمة المرور لإخفاء المجلد الحكيم

The "Set Password" prompt

You can now close the program. When you want to view/use this folder, open Wise Folder Hider, provide the login password from step 2, and then select Open next to the folder to enter that password.

تم تمييز زر إخفاء الملف وإدخال كلمة المرور وزر إخفاء المجلد لإخفاء المجلد الحكيم.

The "Hide File" button, "Enter Password," and "Hide Folder" button to hide the folder are highlighted.

Selecting a Method to Lock the Folder

Selecting a Method to Lock the Folder

Conclusion

In this article, we discussed how to lock a folder in Windows 11. Among the three methods mentioned above, how can you decide which one to choose? The first technique is useful for multi-user computers. If you share your computer with someone who has their own user account, encrypting the folder will prevent them from opening your files. They can still delete the folder and view file names, but they cannot open the files within that folder. Use this method if you don’t want to remember a new password.

Use 7-Zip to lock the folder if you want to choose a password different from your Windows user account password. This method is also useful when sharing the locked folder and copying it elsewhere while maintaining its password protection.

Wise Folder Hider is great if you want to protect the folder behind two different passwords and/or if you want the folder to be invisible to others using the computer.