| Предыдущий | Следующий |
| ERROR_DECRYPTION_FAILED | ERROR_NO_RECOVERY_POLICY |
ERROR_FILE_ENCRYPTED
Что означает ERROR_FILE_ENCRYPTED
ERROR_FILE_ENCRYPTED — указанный файл зашифрован, а у пользователя нет возможности его расшифровать.
Что проверить
Зафиксируйте путь к файлу и конкретную операцию шифрования/расшифрования, которая вернула код.
- Проверьте фактическое состояние EFS файла и наличие у выполняющей учётной записи сертификата с доступным закрытым ключом; для удалённого файла отдельно проверьте возможности сервера.
- Если используется низкоуровневый API EFS, сверяйте смещения, диапазоны и структуру метаданных зашифрованных данных, а не только обычные права доступа к содержимому.
Исходная формулировка
The target is EFS-encrypted and the current user context cannot transparently decrypt it.
The certificate and private-key availability for every listed EFS user or recovery agent.
this result indicates that EFS protection is the blocking condition. NTFS discretionary access control and EFS key access are separate checks: granting read permission or taking ownership does not create the private key needed to unwrap the file-encryption key.
Do not remove the encrypted attribute or copy only the visible data stream with tools that do not preserve EFS metadata. Losing the metadata that contains wrapped keys can make later recovery impossible even when a valid private key is found.
Confirm the encryption state with FileEncryptionStatus or the encrypted file attribute, then identify which users and recovery agents are recorded for the file. If the current application only needs to back up the object, use the raw encrypted-file APIs instead of attempting to read plaintext.
Технические ссылки
- Microsoft: FileEncryptionStatusW
- Microsoft: Encrypted-file backup and restore
- Microsoft: QueryUsersOnEncryptedFile
- Microsoft Open Specifications: File attributes for encrypted streams
- libfsntfs: NTFS format documentation
Нужно найти другой код? Найти другой код состояния или ошибки.