Compression and Other Attributes in EFS
Can I encrypt compressed files or folders? Can I compress encrypted files or folders?
No. NTFS file compression and file encryption are mutually exclusive because of the way NTFS compression is performed. You can use only one of these options at a time on a file.
If the file is compressed and you try to encrypt it, then the check boxes will actually act as radio boxes (Stupid MS programmers! If they are in fact radio boxes why make them look like check boxes? Too much pizza?)
It’s either this
Because encryption is an attribute, you must have write permission to encrypt a file or folder. But even if you have write permission, you cannot encrypt files or folders in the systemroot folder (for example, %systemroot%\Notepad.exe or %systemroot%\System32). You also cannot encrypt files or folders that have their system attribute set. If these types of files and folders could be encrypted, it might render the system useless. This is because many of these files are needed for the system to start up, and decryption keys are not available during the startup process to decrypt them. If you attempt to encrypt a file or folder in the systemroot folder or that has its system attributes set, the encryption attempt fails and an error message appears.
Try to encrypt Notepad.exe for example…
and get this error…
You might also want to read the following related articles:
- Access Denied Error in EFS Encrypted Files
- Copy Encrypted Files on the Network
- Data Protection and Recovery in Windows XP
- Disable EFS in Windows 2000
- Disable EFS in Windows XP/2003
- How does EFS Work?
- New EFS Features in Windows XP
- Quickly Check EFS Attributes
- Quickly Check Which User Encrypted a File
- What’s EFS?
More in Security
QNAP Warns NAS Users About New DeadBolt Ransomware Campaign
Jun 20, 2022 | Rabia Noureen
Microsoft Defender for Individuals is Now Available on Desktop and Mobile
Jun 16, 2022 | Rabia Noureen
Microsoft Acquires Foreign Cyber Threat Analysis Company Miburo
Jun 15, 2022 | Rabia Noureen
Why You Should Restrict Access to Office 365 Using Microsoft Conditional Access Policies
Jun 15, 2022 | Liam Cleary
Researchers Discover New Symbiote Linux Malware Targeting Financial Institutions
Jun 10, 2022 | Rabia Noureen
Qbot Malware Operators Exploit Windows MSDT Zero-Day Flaw to Infect PCs
Jun 9, 2022 | Rabia Noureen
Most popular on petri