ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE - 6020 (0x1784)
A new encrypted file is being created and a $EFS needs to be provided.
Updated: Feb 21, 2026
Technical Meaning
The error code ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE (6020, 0x1784) is a specific file system error that indicates the creation of a new encrypted file. This error arises when an attempt to create a new file in a directory that requires the use of the Encrypting File System (EFS). The $EFS attribute must be present for EFS to function correctly.
Error Details
This error is typically encountered during operations such as creating or copying files into directories where EFS encryption is enabled. The presence of this error suggests that the file system is enforcing the requirement for the $EFS attribute, which is necessary for EFS to manage the encryption process.
Usage Context
The context in which this error occurs is when a new file is being created or copied into an encrypted directory. This can happen during normal operations such as saving files, copying data, or performing administrative tasks that involve creating new files within directories protected by EFS.
Developer Interpretation
Developers should interpret this error as indicating that the operation cannot proceed because the $EFS attribute is missing from the target directory. This suggests that either the directory does not have EFS enabled, or there might be a configuration issue preventing the creation of new encrypted files within it.
Related Errors
ERROR_EFS_NOT_ALLOWED_IN_THIS_FILESYSTEM(0x80092003): Indicates that EFS is not supported on the file system where the operation is being performed.ERROR_EFS_ALG_BLOB_TOO_BIG(0x80092014): Suggests that the encryption algorithm blob size exceeds the maximum allowed by the system.
FAQ
Q: What does this error mean?
A: This error indicates that a new encrypted file cannot be created because the $EFS attribute is missing from the directory where the operation is being performed.
Q: How can I resolve this issue?
A: Ensure that EFS is enabled on the target directory and that the necessary attributes are set. If the directory does not support EFS, you may need to change the directory or enable EFS for it.
Summary
The ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE error code (6020) signifies a specific file system issue related to creating new encrypted files in directories that require the $EFS attribute. Developers should ensure proper configuration and attributes are set when working with EFS-protected directories.