ERROR_DIR_EFS_DISALLOWED - 6010 (0x177A)

The directory has been disabled for encryption.

Updated: Feb 21, 2026

Technical Background

The ERROR_DIR_EFS_DISALLOWED error code, with the numeric value 6010 and hexadecimal representation 0x177A, is a specific Windows error indicating that an operation on a directory has failed because the directory is not enabled for Encrypting File System (EFS) encryption. This error is typically encountered when attempting to perform EFS-related operations on directories that are not part of an EFS-protected volume.

Error Details

The ERROR_DIR_EFS_DISALLOWED error code is returned by the Windows API when a function or operation related to EFS fails due to the directory being disabled for encryption. This can occur in various scenarios, such as attempting to encrypt a file within an unencrypted directory or trying to decrypt a file that resides in an encrypted but non-protected directory.

Common Causes

Invalid Parameter Values

One common cause of this error is passing an invalid parameter value to the API function. For example, if the dwInfoLevel parameter in the GetFileSecurity function is set incorrectly for EFS operations on a non-EFS-enabled directory, the operation will fail with this error.

Incorrect Object Type

Another potential cause is attempting to perform an EFS-related operation on an object that is not of the correct type. For instance, trying to encrypt or decrypt a directory itself rather than individual files within it can result in this error if the directory is not enabled for EFS.

Real-World Context

This error typically arises when working with directories and files that are part of volumes protected by EFS. It is important to ensure that both the directory and any subdirectories or files within them are properly configured for EFS before performing encryption or decryption operations.

Is This Error Critical?

The criticality of this error depends on the specific operation being performed. If an application relies on EFS for data protection, encountering this error can prevent the intended functionality from working correctly. However, it is not a system-critical issue and does not affect overall system stability or performance.

How to Diagnose

Reviewing Operation Context

To diagnose why ERROR_DIR_EFS_DISALLOWED occurs, review the context in which the operation was performed. Ensure that the directory being accessed is part of an EFS-protected volume and that it has been enabled for encryption.

Validating Parameters

Check the parameters passed to the API function. Ensure that all necessary flags and values are correctly set according to the documentation, especially when dealing with EFS operations.

Confirming Object Types

Verify that the object types being manipulated (directories or files) are appropriate for the intended operation. Directories should be checked to ensure they have been enabled for EFS encryption before performing any EFS-related functions on them.

How to Resolve

Correct Parameter Usage

Ensure that all parameters used in API calls related to EFS operations are correctly set and validated. This includes checking dwInfoLevel, dwRights, and other relevant flags.

Adjust Operation Context

If the directory is not enabled for EFS, you may need to enable it first before performing encryption or decryption operations. Use the appropriate Windows API functions such as SetFileSecurity with the correct security descriptor to enable EFS on the directory.

Restore Data

In some cases, if data corruption or misconfiguration has occurred, restoring the directory to a known good state may resolve the issue. This can involve reverting changes made to the directory's security settings or re-enabling EFS encryption.

Developer Notes

When developing applications that interact with directories and files protected by EFS, it is crucial to handle this error appropriately. Ensure that your application logic checks for the presence of EFS protection on directories before performing sensitive operations. Additionally, provide clear error handling and user feedback to guide users through resolving the issue.

Related Errors

FAQ

Q: Why do I get this error when trying to encrypt a file in an unencrypted directory?

A: The directory must be enabled for EFS encryption before you can perform operations on files within it. Use the appropriate Windows API functions to enable EFS on the directory first.

Q: Can I bypass this error by changing the security settings of the directory?

A: Yes, you can change the security settings using SetFileSecurity and enable EFS encryption for the directory if it is not already enabled. This will allow you to perform EFS-related operations on files within that directory.

Q: Is this error related to hardware or system performance issues?

A: No, this error is a software issue related to file system configuration and does not indicate any hardware or performance problems.

Summary

The ERROR_DIR_EFS_DISALLOWED (6010) error indicates that an operation on a directory has failed because the directory is not enabled for EFS encryption. This can be caused by invalid parameters, incorrect object types, or directories not being properly configured for EFS. Proper handling of this error requires validating parameters and ensuring that directories are correctly set up for EFS operations.