How to Encrypt Files and Folders with Encrypting File System (EFS) in Windows 10
The Encrypting File System (EFS) is the built-in encryption tool in Windows used to encrypt files and folders on NTFS drives to protect them from unwanted access. EFS enables transparent encryption and decryption of files for your user account by using advanced, standard cryptographic algorithms. Any individual or app that doesn't possess the appropriate file encryption key cannot open any encrypted files and folders. Encryption is the strongest protection that Windows provides to help you keep your individual files and folders secure.
Reference:
This tutorial will show you how to encrypt your files and folders with Encrypting File System (EFS) in Windows 10 Pro, Enterprise, and Education editions.
When you encrypt a file or folder with EFS in Windows 10, its icon will have a lock overlay at the top right corner to indicate that it's an EFS encrypted file or folder.
When you encrypt a folder, any new file saved into the folder will automatically be encrypted by EFS.
If an administrator changes or resets the password of a user's local account on the PC, that local account will lose access to all their EFS encrypted files and folders until they restore the file encryption key for them.
If you encrypt a compressed file or folder, the file or folder will no longer be compressed afterwards.
If you compress an EFS encrypted file or folder, the file or folder will no longer be encrypted afterwards.
If you ZIP an EFS encrypted file or folder, the file or folder will no longer be encrypted afterwards.
If you try to copy or move an EFS encrypted file or folder to a location that does not support encryption, you will be prompted with a "Do you want to copy this file without encryption" type dialog like below.
It is highly recommended that you back up your file encryption key after encrypting files and folders to help avoid permanently losing access to your encrypted files and folders.
If you lose access to your encrypted files and folders, you will not be able to open them again unless you first restore the file encryption key for them.
Contents
- Option One: To Encrypt Folder in Advanced Attributes
- Option Two: To Encrypt File in Advanced Attributes
- Option Three: To Encrypt Folder in Command Prompt
- Option Four: To Encrypt File in Command Prompt
1 Right click or press and hold on a folder you want to encrypt with EFS, and click/tap on Properties.
2 In the General tab, click/tap on the Advanced button. (see screenshot below)
3 Check the Encrypt contents to secure data box, and click/tap on OK. (see screenshot below)
4 Click/tap on OK. (see screenshot below)
5 Select (dot) to either Apply changes to this folder only or Apply changes to this folder, subfolders and files for what you want, and click/tap on OK. (see screenshot below)
1 Right click or press and hold on a file you want to encrypt with EFS, and click/tap on Properties.
2 In the General tab, click/tap on the Advanced button. (see screenshot below)
3 Check the Encrypt contents to secure data box, and click/tap on OK. (see screenshot below)
4 Click/tap on OK. (see screenshot below)
5 Select (dot) to either Encrypt the file and its parent folder or Encrypt the file only for what you want, and click/tap on OK. (see screenshot below)
To see more usage options for the Cipher command, see: Cipher - Microsoft Docs
1 Open a command prompt.
2 Type the command you want to use below into the command prompt, and press Enter. (see screenshots below)
(Apply changes to this folder only)
cipher /e "full path of folder"
OR
(Apply changes to this folder, subfolders and files)
cipher /e /s:"full path of folder"
Substitute full path of folder in the commands above with the actual full path of the folder you want to encrypt with EFS.
3 When finished, you can close the command prompt if you like.
To see more usage options for the Cipher command, see: Cipher - Microsoft Docs
1 Open a command prompt.
2 Type the command below into the command prompt, and press Enter. (see screenshot below)
cipher /e "full path of file with extension"
Substitute full path of file with extension in the command above with the actual full path of the file you want to encrypt with EFS.
3 When finished, you can close the command prompt if you like.
That's it,
Shawn Brink
Related Tutorials
- How to Enable or Disable NTFS File Encryption in Windows
- How to Decrypt Files and Folders Encrypted with EFS in Windows 10
- Add Encrypt and Decrypt to Context Menu in Windows 10 and Windows 11
- How to Back Up Your EFS File Encryption Certificate and Key in Windows 10
- How to Import Your EFS File Encryption Certificate and Key in Windows 10
- How to Find and List All Your EFS Encrypted Files in Windows 10
- How to Change or Remove Lock Icon on Encrypted Files and Folders in Windows 10
- How to Turn On or Off to Index Encrypted Files in Windows 10
- How to Turn On or Off BitLocker for Operating System Drive in Windows 10
- How to Turn On or Off BitLocker for Fixed Data Drives in Windows 10
- How to Turn On or Off BitLocker for Removable Data Drives in Windows 10
- How to Add or Remove EFS "File ownership" Context Menu in Windows 10
- Turn On or Off Show Encrypted or Compressed NTFS files in Color in Windows 10
- How to Enable or Disable Automatically Encrypt Files Moved to EFS Encrypted Folders in Windows