How Do I Put a Password on A Folder | Password Protect Privacy File in Windows 10/11

User Author

Achilles.H

February 21, 2024

how do i put a password on a folder password protect privacy file in windows 10 11

This article will provide you an overview of four ways about how to password protect folders or files, along with step-by-step instructions for each.

When your computer is temporarily borrowed, colleagues may inadvertently view embarrassing files. How can you prevent this? An encrypted folder would be ideal. Without further ado, let's learn how to put a password on a folder in Windows 10/11.

1. Hide your folders

Step 1: Right click the target folder, choose Properties.

right click the file

Step 2: Click the 'Hidden' option, then click the 'OK' button.

click hidden option tests folder confirm attribute changes

After completing this step, the target file will be hidden.

Step 3: Click the 'View' button and select 'Hidden items' to view the hidden target file again.

3 review hidden folders

2. Encrypt your folders

Step 1: Right-click the target folder, select 'Properties', then choose 'Advanced'.

right click the file encrypted advance button

Step 2: In the pop-up dialog, select 'Encrypt contents to secure data', then click 'OK'. Finally, click 'OK' in the 'Properties' window.

encrypted advance attributes.png
test properties check ok

After this operation, Only the local account on this computer can access this folder. Other accounts on this computer cannot access this folder. Access will also be restricted when copied to another computer.

3. Create a password protected zip file

Step 1: Choose your target folder, add to archive.

add file to zip

Step 2: Enter your password twice then click OK.

write code on zip file

After completing this operation, a temp.7Z file will be created in the directory.

Step 3: Right click the temp.7z file, choose "Open archive".

open zip file with 7zip

Step 4: Click "Extract" , then choose a folder to place file.

open zip file to zz

Step 5: Enter your password to unlock the zip file.

enter password to unzip

Step 6: Locate the path to access the file.

check the extract file

4. Disguise your folders.

In this method, you should place your file in folders named MyPC, MyDevice, MyNetwork. Once disguised, these folders will redirect to another path.

Step 1: Press the Windows key, type 'cmd', then run Command Prompt as administrator.

run cmd with administrator

Step 2: Execute these CMD commands in order.

md MyPC //create MyPC folder

ren MyPC MyPC.{20D04FE0-3AEA-1069-A2D8-08002B30309D} //rename MyPC folder to Disguise

ren MyPC.{20D04FE0-3AEA-1069-A2D8-08002B30309D} MyPC //restore MyPC folder

mypc command

After executing the instructions, the MyPC folder will change its icon and link to another path.

mypc-icon

If you want to restore MyPC folder, execute the instructions above. It will change to a normal folder.

Besides, We can also disguise folder into "MyDevice" and "MyNetwork" whose icon are printer and network respectively.

Execute the following commands in the Command Prompt window.

md MyDevice //create MyDevice folder

ren MyDevice MyDevice.{2227A280-3AEA-1069-A2DE-08002B30309D} //rename MyDevice folder to Disguise

ren MyDevice.{2227A280-3AEA-1069-A2DE-08002B30309D} MyDevice //restore MyDevice folder

This command below is for "MyNetwork" folder.

md MyNetwork //create MyNetwork folder

ren MyNetwork MyNetwork.{7007ACC7-3202-11D1-AAD2-00805FC1270E} //rename MyNetwork folder to Disguise

ren MyNetwork.{7007ACC7-3202-11D1-AAD2-00805FC1270E} MyNetwork //restore MyNetwork folder

Below are two images: one before and one after the conversion.

Before:

three ordinary file icon

After:

three disguise icons

Additionally, here's how to use the CMD command to navigate to a specific address: use the command below.

cd /d J:\temp

"J:\temp" is a address called absolute address.

change folder cmd command

5. Conclusion

Comparison of several methods: if you prefer simplicity and convenience with a slightly lower level of security, use the first method. For file protection among multiple users on one computer, opt for the second method. If you seek long-term secure storage, employ the third method. Creating a password-protected zip file, the fourth method, is also simple and convenient, requiring only the storage of corresponding instructions in a TXT file.