Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

How to Disable Windows File Compression

Mitch BartlettSeptember 20, 2018 Comments (10)
Windows Settings Header

This tutorial shows you how to disable the File Compression feature in Microsoft Windows.

Contents

  • 1 Windows 10, 8, 7, and Vista Command
  • 2 Windows Group Policy
  • 3 Windows 2000 and XP NTFS Volumes

Windows 10, 8, 7, and Vista Command

  1. Select the “Start” button, then type “CMD“.
  2. Right-click “Command Prompt“, then choose “Run as administrator“.
  3. If prompted for a password, enter credentials for an account that has administrator rights.
  4. Type the following then press “Enter“.
    • fsutil behavior set disablecompression 1

You should receive a message that says “NOTE: Changes to this setting require a reboot to take effect.” Restart the computer to make the change stick.

If you wish to enable it again, you can use the command fsutil behavior set disablecompression 0


Windows Group Policy

  1. From the Group Policy Editor, navigate to “Computer Configuration” > “Administrative Templates” > “System” > “Filesystem” > “NTFS“.
  2. Open the “Do not allow compression on all NTFS volumes“.
  3. Select the “Enabled” radio button, then select “OK“.

Windows 2000 and XP NTFS Volumes

  1. Hold down the “Windows key” , then press “R“.
  2. Type “regedit” and select “OK“.
  3. Navigate to the following:
    • HKEY_LOCAL_MACHINE
    • SYSTEM
    • CurrentControlSet
    • Control
    • FileSystem.
  4. Look for an entry on the right side for “NtfsDisableCompression“. If it doesn’t exist, you will need to create it. To do so, right-click on “FileSystem“, then select “New” > “DWORD Value“. Give the value a name of “NtfsDisableCompression“. Press the “Enter” key when you are done.
  5. Right-click the “NtfsDisableCompression” entry and click “Modify“.
  6. To disable compression set the “Value data” to “1“. (To enable compression again, set the Value data to 0 or delete NftsDisableCompression)
  7. Restart the computer to apply changes.

Now when trying to compress a folder, the following error will be produced:

An error occurred applying attributes to the file:
{file path and filename}
Access is denied.
Error Applying Attributes

Categories: Windows

Author Mitch Bartlett

Through my career that spans over 20 years I have become an expert in Microsoft Systems Administration, Android, and macOS. I started this site as a technical guide for myself and it has grown into what I hope is a useful knowledgebase for everyone.

You Might Also Like

  • Windows 10, 8 & 7 Enable or Disable Superfetch

    Windows 11: Enable or Disable Superfetch

    Mitch BartlettWindows
  • Windows: Fix ‘Multiple connections to a server or shared resource by the same user’ Error

    Mitch BartlettWindows
  • Fix NordPass Login Errors

    Troubleshooting NordPass Login Errors

    Madalina DinitaWindows
  • Fix-Error-0x80070490-We-Couldnt-Find-Your-Settings

    Fix Error 0x80070490: We Couldn’t Find Your Settings

    Madalina DinitaWindows

Comments

  1. Autumn Defloria says:
    August 24, 2020 at 12:33 am

    Right click c drive go to properties go to general and unlock compress this drive to save disk space. Perfect n done

  2. Anonymous says:
    November 27, 2019 at 7:16 am

    One way to get rid of ntfs compression is to use non 4KiB NTFS cluster size, cluster size is selectable at format time, but with some 3rd party tools cluster size can be changed without loosing data.

    NTFS compression is only for 4KiB cluster sized NTFS partitions.

    So just use 8KiB cliuster size up to 32KiB, do not use more than 32KiB (among it is possible) because some tools / disk apps will fail (like some defragmenters).

    Also there is a more drastic solution, just disallow NTFS compression for all volumes (not sure how it dares with already NTFS compressed files), using a command in a command line run with admin rights.

    To do not allow any NTFS compression on any volume, the comand is:

    fsutil behavior set disablecompression 1

    To undo that change (aka, allow NTFS compression on some volumes):

    fsutil behavior set disablecompression 0

    Hope that helps!

  3. Amfetamiiin says:
    September 9, 2019 at 10:23 am

    If none of the above works for you, try this method that worked for me:
    Open My Computer, right click on your C: drive, then select “Attributes”, a window pops up, untick the 2nd bottom box which says “Compress files to save disk space” (or something similar to that)

  4. Dario Leslie says:
    April 13, 2019 at 6:02 am

    I actually found a way on how to solve the compressed file download issue, please include it here!
    Open CMD as admin then type compact/compactos:query to check if Win10 itself was compressed, if yes: congrats, we found the issue. Now just type compact/compactos:never to undo it. Can take a while until everything’s finished so give it a good while.

  5. Dario Leslie says:
    April 13, 2019 at 5:54 am

    I already tried the command prompt line as administrator but nonetheless all my newly downloaded files are still compressed. Any way to turn this annoying “feature” off?

  6. Flip says:
    March 31, 2019 at 11:57 am

    I don’t see any selection for “run as administrator” from the command prompt.

  7. Eric says:
    February 25, 2019 at 5:28 pm

    So actually… the command line way disabled file compression for one reboot it seems. When I rebooted again (several days later) it went right back to compressing files! I then went to modify the group policy, and it’s STILL compressing all new files on my computer… this is driving me nuts! Still looking for a -permanent- solution to this very annoying issue…

  8. Eric says:
    February 19, 2019 at 7:24 pm

    I just used the command prompt version of this fix to disable file compression that was driving me nuts because I ran low on diskspace recently, and it did the trick! I’m running Win10 64-bit version. Thank you for this!

  9. Ulrich Scharmer says:
    February 6, 2019 at 2:58 am

    I followed your instructions (command line), then I check the registry entry (it showed: NtfsDisableCompression, value data 1). But still the same: any file I download to my download folder is compressed (blue double arrows).

  10. erik says:
    January 20, 2019 at 2:05 pm

    after windows 10 continiously compressing the files on my desktop to free up disk space, i found this tweak helpful to stop this behaviour that otherwise cannot be stopped by the user.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • no graphics signal on first boot

    No Graphics Signal on First Boot – How to Fix

  • system32 folder opens on startup

    System32 Folder Opens on Startup – How to Fix

  • browser keeps opening hp support

    Browser Keeps Opening HP Support Assistant Tabs 

  • camera not working in vmware

    Camera Not Working in VMware – How to Fix

  • browser screen goes black

    Browser Screen Goes Black Intermittently 

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on September 20, 2018 by Mitch Bartlett