• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Browsers
    • Gaming
    • Hardware
    • Internet
    • iPhone
    • Linux
    • macOS
    • Office
    • Reviews
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About
How to Disable Windows File Compression

How to Disable Windows File Compression

September 20, 2018 by Mitch Bartlett 10 Comments

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

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

You Might Also Like

  • Enable or Disable Windows File Protection
    Enable or Disable Windows File Protection
  • Windows 10: Disable "Are you sure you want to move this file to the Recycle Bin?" Dialog
    Windows 10: Disable "Are you sure you want to move this file…
  • Slack: How To Disable Public File Sharing
    Slack: How To Disable Public File Sharing
  • Windows 10: How to Exclude a File From Windows Defender
    Windows 10: How to Exclude a File From Windows Defender
  • Windows: Disable "Windows cannot connect to all network drives" Notification
    Windows: Disable "Windows cannot connect to all network…
  • Windows 10: Enable/Disable Sample Submission for Windows Defender
    Windows 10: Enable/Disable Sample Submission for Windows…

Filed Under: Windows Tagged With: Windows 10

Reader Interactions

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.

Did this help? Let us know!

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • 15 Best iOS 16 Beta 3 Features You Should Try Now
  • Android: How to Record and Add Custom Alarm Audio
  • What is a Hackathon?
  • How to Enable Samsung Adapt Sound for the Best Audio
  • What is Social Engineering?
  • Google Voice Typing Not Working: Fix
  • How to Combine Two Columns in Excel: 5 Best Methods
  • Google Docs: How to Type Faster With Speech-to-Text

Who’s Behind Technipages?

Baby and Daddy 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.

You May Also Like

  • File Compression Utility
  • Compression Ratio
  • Compression Algorithm
  • Encapsulated Postscript (EPS) File
  • Windows 95/98
  • Microsoft Windows NT
  • Microsoft Windows
  • Microsoft Windows 95

© Copyright 2023 Guiding Tech Media · All Rights Reserved · Privacy