How to Encrypt files and folders in Windows 10 using Encrypting File System (EFS)

When it comes to the files and disk encryption in Windows 10, two encryption technology can be used, Encrypting File System (EFS) with BitLocker. Encrypting File System (EFS) is used for encrypting files and folders and BitLocker is used to encrypt the entire disk (HDD or SSD).

In this article, we will show you how to use Encrypting File System (EFS) to encrypt files and folders in Windows 10, but the same procedure applies to the previous operating systems. The Encrypting File System (EFS) is available on Windows 10 Pro, Enterprise, and Education edition.

In order to make it clear and understandable, we will create a scenario. The single Windows 10 Pro machine is used by two users. Both users have own user accounts (Local Administrators) to perform daily activities. User “A” has created and stored some private data in the root of C: partition and User “A” wants to encrypt the data so, that User “B” does not have access.

This article consists of two parts. In the first part, we will show you how to encrypt data as User “A” and prevents User “B” from running. In the second part, we will show you how to enable User “B” to access encrypted files created and stored by User “A”.

1. Encrypt files and folders

  1. Log in to Windows 10 machine
  2. Hold Windows logo and press E to open File Explorer
  3. Navigate to partition or disk where you have stored your data and want to encrypt with Encrypting File System (EFS)
  4. Right click on the folder and choose Properties
  5. Under General tab click on Advanced button under Attributes section
  6. Under Advanced Attributes click on Encrypt contents to secure data
  7. Click OK
  8. Click Apply and then select Apply changes to this folder, subfolders and files and then confirm by clicking OK.
  9. Click on pop-up window Back up your file encryption key which will appear as a notification in the taskbar. This helps you avoid permanently losing access to your encrypted files.

In case it disappears from the screen, you can access it in the taskbar, as shown in the screenshot below.

  1. Under Back up your encryption certificate and key choose one of the available options. We do recommend choosing Back up now (recommended) and storing certificates and keys on removable media. You can also back up it later by clicking Back up later. In this case, Windows will remind you the next time you log on.
  2. Under Welcome to the Certificate Export Wizard click on Next
  3. Under Export File Format select Personal information Exchange and then click Next.
  4. Under Security create a password, choose the encryption type, and click Next.
  5. Under File to Export click on Browse, select removable disk, define file name, and click on Save. After that click Next. In our case, we are saving a certificate to a removable file, but you can also save it on the local machine, but that is not recommended.
  6. Under Completing the Certificate Export Wizard click Finish.
  7. If everything was fine, you will see the confirmation window The export was successful. Click on OK.
  8. Open File Explorer and navigate to your data that you have just encrypted. You will see that every encrypted file has a yellow lock icon at the top right side.

2. Enable other users to access the encrypted files in Windows 10

In case any other users try to access encrypted files, it will not be able due to missing permissions, as shown in the screenshot below. In order to enable other users to access the encrypted files, we will apply the certificate that will give necessary permissions to access the encrypted files. This is the certificate we exported in the first part of this article. 

  1. Share the certificate with the user who does not have access to the encrypted data
  2. Login into Windows 10 by using the user account that does not have access to the encrypted data
  3. Double click on the certificate to start the procedure of certificate installation
  4. Under Welcome to the Certificate Import Wizard click on Current User and then click Next
  5. Specify the file you want to import and then click Next
  6. Type the password and then click Next
  7. Select Automatically select the certificate store based on the type of certificate and then click Next
  8. Under Completing the Certificate import Wizard click Finish
  9. If everything was fine, you will see the confirmation window The import was successful. Click on
  10. Open File Explorer and navigate to the location where encrypted files are
  11. Open encrypted files. As you can see, User “B” has successfully opened the encrypted text file.
ABOUT THE AUTHOR

Jasmin Kahriman


Jasmin is a tech-savvy Systems Engineer with over 15 years of experience in IT infrastructure, holding multiple IT certifications including CNIP, MTA, MCP, MCSA, MCT, Server+, and Network+.