1

I am now managing Windows Server 2003 originally setup by someone else.

What I noticed is that even though file compression is not turned on at the drive level (when I go to drive Properties "Compress drive to save disk space" is unchecked) a lot of files are still compressed on the disk seemingly at random. For example in "C:\Windows" folder about half of the files are compressed (appear blue in Windows Explorer and have "AC" attributes) and another half is not compressed.

What I want to do is to disable compression because we have more then enough disc space and compression just slows things down.

Is there some other option (other than disc properties) where file compression is controlled? Can this attribute be changed by some process? I just don't think someone went through thousands of files on the disc and hand-picked them for compression.

Whatever the reason - how would I go about disabling it completely? Using ATTRIB.EXE on the drive root folder recursively?

1

2 Answers 2

4

Now that you've figured out why they're compressed, you can uncompress them by running the following from a command prompt on the root drive:

compact /u /s

http://technet.microsoft.com/en-us/library/bb490884.aspx

In addition, when running the Disk Cleanup utility, the option to compress old files is just that, an option. If you don't want to compress old files as part of the cleanup then unselect the check box.

This is the correct command line for uncompressing the entire C drive:

compact /u /s:C:\ /i *.*

Run that from the command line and wait....

1
  • Better usage is this: "compact /u /s /i" - this will ignore errors accessing files that are now locked by the OS
    – Joe Schmoe
    May 25, 2012 at 19:09
1

use the command line tool, compact to remove it from directories. however unlike the above use it correctly:

compact /u /s:Windows /i .

that will uncompress all files under the windows folder

compact /u /s:C:\ /i .

that will uncompress all files under the C: drive

your welcome!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .