Skip to content
WindowsAdvanced

Compress Drive and Disable File Indexing in Windows 10 and 11: Benefits, Disadvantages and Recommendations

Quick Answer Windows 10 and Windows 11 provide two independent storage-related options in the properties of an NTFS drive: Compress this drive to save disk s...

BI
Bison Technical Team Enterprise IT specialists
Updated 34 min read 0 total views
Structured technical guidanceSafety notes included where requiredSources cited when applicable

Quick Answer

Windows 10 and Windows 11 provide two independent storage-related options in the properties of an NTFS drive:

  • Compress this drive to save disk space: Reduces the physical storage space occupied by eligible files using NTFS file system compression. It can save disk space but may increase processor usage and affect application performance.
  • Allow files on this drive to have contents indexed in addition to file properties: Allows Windows Search to index eligible file contents, making it easier to find documents using words or phrases contained within them. Unchecking this option may reduce background indexing activity but can make content-based searches slower or less comprehensive.

For most modern computers equipped with an SSD and sufficient storage capacity, the recommended configuration is to leave drive compression disabled and file content indexing enabled on the Windows system drive (C:).

Advertisement

Compression can be useful for selected folders containing highly compressible data, while disabling content indexing can be beneficial for archive drives, backup locations and folders that are rarely searched.

Neither setting guarantees an improvement in overall Windows performance. The actual results depend on the processor, storage device, file types, available disk space and usage patterns.

Understanding the Two Drive Properties Options

When you open the properties of an NTFS drive in Windows 10 or Windows 11, the General tab normally provides options related to compression and content indexing.

Although both options can influence storage usage and system performance, they perform entirely different functions.

Feature Drive Compression File Content Indexing
Primary purpose Reduce disk space consumption Improve file content search performance
Underlying technology NTFS file system compression Windows Search and file indexing attributes
Effect on file contents Changes how file data is physically stored Controls eligibility for content indexing
Processor usage May increase during file access and modification May increase during indexing operations
Disk space impact May reduce the space occupied by files Uses additional storage for the search index
Effect on search No direct change to search configuration Directly affects indexed content searches
Reversible Yes, provided sufficient disk space is available Yes, although reindexing may take time

What Is Compress This Drive to Save Disk Space?

The Compress this drive to save disk space option enables the built-in compression capabilities of the NTFS file system.

NTFS stands for New Technology File System. It is the standard file system used by Windows for its operating system partition and many internal storage drives.

NTFS compression reduces the physical storage requirements of eligible files without changing their logical contents. Unlike ZIP or RAR archives, NTFS-compressed files remain directly accessible through File Explorer and compatible applications.

You do not need to manually extract a compressed file before opening it.

How Does NTFS Compression Work?

When NTFS compression is enabled for a file, Windows attempts to store its data in a more space-efficient representation.

During normal file operations:

  1. Windows receives data that needs to be written to a compressed file.
  2. The file system compresses eligible data before storing it.
  3. The compressed representation occupies less physical storage when the data is sufficiently compressible.
  4. When an application reads the file, Windows decompresses the required data automatically.
  5. The application receives the original file contents.

This process is transparent to most applications. File names, extensions and logical file contents remain unchanged.

Compression is lossless, meaning that it does not intentionally remove information or reduce the quality of the original file.

When compression is enabled on a directory, newly created files and subdirectories normally inherit its compression setting. Existing files are compressed when the change is explicitly applied to them.

NTFS Compression Compatibility

Standard NTFS file compression is available in both Windows 10 and Windows 11. It can be used on compatible NTFS volumes regardless of whether the underlying storage device is an HDD or SSD.

Important compatibility considerations include:

  • The drive must use a file system that supports the relevant compression feature.
  • Standard NTFS compression is not available on FAT32 or exFAT volumes.
  • NTFS compression requires a supported allocation unit size, normally 4 KB or smaller.
  • Individual files cannot simultaneously use standard NTFS compression and Encrypting File System (EFS) encryption.
  • Applications may impose their own restrictions on compressed files and directories.
  • Protected, inaccessible or actively used files may not be processed successfully during a drive-wide compression operation.

NTFS compression and BitLocker are different technologies. BitLocker provides volume-level encryption, while NTFS compression reduces the storage requirements of individual files. The restriction involving EFS does not mean that NTFS compression is incompatible with BitLocker.

Advantages of Enabling Drive Compression

1. Reduces Disk Space Consumption

The primary advantage of NTFS compression is the ability to store eligible files using less physical disk space.

This can be particularly useful on computers with limited storage capacity or drives containing large amounts of compressible data.

Examples of potentially compressible data include:

  • Plain text documents.
  • Application log files.
  • CSV files.
  • XML and JSON files.
  • HTML and CSS files.
  • Programming source code.
  • Uncompressed data exports.
  • Historical records containing repetitive information.

2. No Manual File Extraction Required

Unlike conventional archive formats, NTFS compression does not require users to create or extract separate archive files.

Compressed files can generally be opened, edited, copied and accessed using their normal applications.

3. No Additional Compression Software Required

NTFS compression is integrated into Windows. Users do not need to install third-party file compression utilities to use this feature.

It can be configured through File Explorer or the built-in Windows compact command.

4. May Reduce Storage Input and Output Requirements

When files compress effectively, fewer physical bytes may need to be transferred between the storage device and the computer.

On a system where storage throughput is the primary performance bottleneck and sufficient processor resources are available, this reduction in physical data transfer may improve certain file operations.

However, this is workload-dependent. Compression should not be considered a guaranteed method of increasing disk speed.

5. Supports Selective Compression

Users do not need to compress an entire drive to benefit from NTFS compression.

Individual files and folders can be compressed independently. This makes it possible to save storage space while leaving performance-sensitive applications and frequently modified files uncompressed.

Selective compression is generally a more controlled approach than compressing an entire Windows system drive.

Disadvantages of Enabling Drive Compression

1. Additional Processor Usage

Windows must perform compression and decompression operations when accessing compressed data.

These operations require processor resources that would not otherwise be needed for equivalent uncompressed file operations.

The additional processing requirements may be more noticeable on:

  • Older computers.
  • Low-powered processors.
  • Entry-level laptops.
  • Computers running processor-intensive applications.
  • Systems handling frequent file modifications.

Modern processors can often handle compression efficiently, but the overhead is not completely eliminated.

2. Possible Reduction in Application Performance

Applications that repeatedly read and modify large files may experience additional processing overhead when their files are stored using NTFS compression.

Performance-sensitive workloads include:

  • Database management systems.
  • Virtual machines.
  • Video editing applications.
  • Software development build environments.
  • Large engineering and design applications.
  • Applications that perform frequent random file writes.

Some software vendors restrict or discourage the use of file system compression for particular application data. Always check the relevant application's storage requirements before enabling compression.

3. Limited Benefits for Already Compressed Files

Many modern file formats already use internal compression. Applying NTFS compression to these files may provide little or no additional storage savings.

Examples include:

  • JPEG and WebP images.
  • PNG images.
  • MP3 and AAC audio files.
  • MP4 and MKV video files containing compressed media.
  • ZIP, RAR and 7z archives.
  • Modern Microsoft Office documents such as DOCX, XLSX and PPTX.
  • Many PDF documents.
  • Compressed software installation packages.

The actual compression potential depends on the contents of each file. A file extension alone does not guarantee a particular compression ratio.

4. Initial Compression Can Take a Long Time

When compression is applied to an entire drive, Windows may need to process a large number of existing files and directories.

The time required depends on:

  • The amount of stored data.
  • The number of files and directories.
  • Processor performance.
  • Storage device performance.
  • The compressibility of the data.
  • Other applications accessing the drive.

During this operation, processor usage and disk activity may increase temporarily, making the computer less responsive.

5. Additional Storage Requirements When Decompressing

Disabling compression requires Windows to restore the uncompressed representation of affected files.

If a drive is nearly full, there may not be enough available storage to decompress every file successfully.

Before disabling compression on a heavily compressed drive, ensure that sufficient free space is available.

6. Potential File Fragmentation

NTFS-compressed files that are repeatedly modified can become fragmented as the file system allocates storage for changing compressed data.

Fragmentation can have a greater performance impact on mechanical hard disk drives because they use moving read and write heads.

SSDs do not have the same mechanical seek delays, but heavily fragmented files can still introduce file system management overhead.

7. Possible Increase in Power Consumption

Compression and decompression require additional processing. Depending on the workload, this may increase processor power consumption.

However, reduced storage activity may offset some of that consumption. The net effect on laptop battery life cannot be predicted reliably without measuring the actual workload.

8. Application and System Compatibility Considerations

Although NTFS compression is a supported Windows feature, not every application or storage workload is suitable for compression.

Applying compression indiscriminately to operating system directories, application installation folders, databases and other critical files may introduce unnecessary performance or compatibility complications.

For this reason, compressing selected personal data folders is generally preferable to applying compression recursively across the entire system drive.

Which File Types Benefit Most from NTFS Compression?

File Type Typical Compression Potential Recommendation
TXT and LOG files High Suitable, particularly for inactive logs
CSV, XML and JSON files Moderate to high Generally suitable
HTML, CSS and source code Moderate to high Suitable for archives and inactive projects
Uncompressed bitmap images Variable Test before applying broadly
DOCX, XLSX and PPTX files Generally low Usually unnecessary
JPEG, PNG and WebP images Generally low Usually unnecessary
MP3 and compressed video files Very low Generally unnecessary
ZIP, RAR and 7z archives Very low Generally unnecessary
EXE and DLL files Variable Avoid blanket compression of application folders
Active database files Variable Follow database vendor recommendations
Virtual machine disk files Variable Avoid unless supported and tested
Encrypted or high-entropy data Very low Generally unnecessary

These classifications are qualitative estimates rather than guaranteed compression ratios. Actual results depend on the internal structure and contents of the files.

Understanding Size and Size on Disk

Windows File Explorer displays two different storage measurements in file and folder properties:

  • Size: The logical size of the file or the combined logical size of files in a folder.
  • Size on disk: The storage allocated to the file or folder contents on the underlying file system.

NTFS compression can reduce the size on disk without changing the logical size of the file.

Illustrative Compression Example

Measurement Before Compression After Compression
Logical file size 100 GB 100 GB
Size on disk 100 GB 65 GB
Storage saved 0 GB 35 GB
Storage reduction 0% 35%

This is a hypothetical example demonstrating how compression savings are calculated. It is not a benchmark or an expected compression ratio for Windows drives.

Differences between size and size on disk can also result from allocation unit sizes, sparse files and other file system features. Therefore, the difference should not automatically be attributed entirely to compression.

What Is Allow Files on This Drive to Have Contents Indexed in Addition to File Properties?

This option controls whether eligible files and folders on a drive can have their contents indexed by the Windows content indexing system.

Windows Search maintains a searchable catalog containing information collected from supported files and other data sources. Instead of opening every file whenever a search is performed, Windows can use the existing index to locate relevant information more efficiently.

Content indexing is especially useful when users remember information contained within a document but do not remember its exact file name.

Difference Between File Properties and File Contents

File Properties File Contents
File name Words inside a text document
File extension Text inside a supported PDF document
File location Text inside a Microsoft Word document
Creation date Supported text within spreadsheets
Modification date Text within supported presentations
File size and supported metadata Other content extracted by supported file handlers

For example, consider a Word document named Meeting-2026.docx containing the phrase Annual Maintenance Contract.

When the document's contents are successfully indexed, searching for Annual Maintenance Contract may locate the document even though those words do not appear in its file name.

When content indexing is disabled for that document, the indexed search may no longer locate it using those internal words. Searching for its file name remains possible.

How Windows Search Indexing Works

Windows Search monitors configured locations and processes eligible files using supported file handlers.

The indexing process generally involves:

  1. Identifying files within configured indexing locations.
  2. Collecting supported file properties.
  3. Extracting eligible file contents.
  4. Storing searchable information in the index.
  5. Updating indexed information when relevant files change.
  6. Using the index to accelerate supported search operations.

The initial indexing process may require significant time and system resources. Once the index is established, routine indexing primarily processes new or modified information.

What Happens When You Uncheck File Content Indexing?

Unchecking the drive-level content indexing option and applying the change recursively marks affected files and directories with the Windows file attribute FILE_ATTRIBUTE_NOT_CONTENT_INDEXED.

This attribute indicates that the affected item should not have its contents processed by the content indexing service.

It is important to understand that unchecking this option does not completely disable Windows Search.

Specifically, it does not automatically:

  • Stop the Windows Search service.
  • Disable the Start menu search interface.
  • Remove every indexed location from Windows.
  • Delete the entire existing search index.
  • Prevent searching for file names.
  • Disable every form of file content searching.
  • Disable independent search systems used by third-party applications.

Depending on the configured indexing locations, search method and file handlers, Windows may still index file properties or perform searches directly against files without using an existing content index.

Non-indexed content searches can take substantially longer because Windows may need to examine individual files during the search.

Advantages of Disabling File Content Indexing

1. May Reduce Background Disk Activity

When fewer file contents are eligible for indexing, Windows Search may perform less background file-reading activity.

This can be beneficial on systems containing large numbers of files that are frequently created or modified but rarely searched by their contents.

The benefit may be more noticeable on mechanical HDDs, where simultaneous background and foreground storage operations can compete for disk access.

2. May Reduce Processor Usage

Extracting and cataloging file contents requires processing resources.

Excluding unnecessary file contents may reduce the amount of processing performed by Windows Search, particularly during initial indexing or periods of extensive file modification.

On a modern computer with a stable search index, the improvement may be small or unnoticeable.

3. May Reduce Search Index Storage Requirements

Windows Search stores indexed information in a local database. Indexing fewer file contents can reduce the amount of information that needs to be stored.

The actual space saved depends on the number of indexed files, their contents, supported file types and indexing configuration.

Unchecking the option does not necessarily result in an immediate reduction in the physical size of the existing index database.

4. Useful for Archive and Backup Locations

Drives containing historical backups, installation packages, archived projects and other rarely searched information may not benefit significantly from content indexing.

Disabling content indexing or excluding these locations through Indexing Options can help avoid unnecessary background processing.

5. Useful for Frequently Changing Technical Data

Some technical directories contain large numbers of temporary or automatically generated files.

Examples include:

  • Software build output directories.
  • Application cache folders.
  • Temporary data processing directories.
  • Automatically generated log files.
  • Package dependency directories.
  • Frequently regenerated reports.

If these locations are included in the Windows Search index, excluding them may reduce unnecessary indexing work.

Disadvantages of Disabling File Content Indexing

1. Slower File Content Searches

Without indexed file contents, Windows may need to examine individual files to find matching words or phrases.

This can significantly increase search times when searching large directories or drives.

2. Less Comprehensive Search Results

Some search interfaces depend heavily on indexed information. Documents that would otherwise appear in content-based search results may no longer be returned through those interfaces.

This can make it more difficult to locate documents when their file names are unknown.

3. Reduced Productivity for Document-Intensive Users

Users who frequently search through documents, reports, invoices, correspondence or technical records may experience reduced productivity when content indexing is disabled.

This is particularly relevant to:

  • Office employees.
  • Accountants.
  • Technical support engineers.
  • Researchers.
  • Document management professionals.
  • Business administrators.

4. Possible Impact on Applications That Use Windows Search

Some Windows applications use the Windows Search infrastructure to provide faster search results.

Microsoft Outlook, for example, can use Windows Search for certain local email search operations. However, unchecking the drive-level content indexing option is not equivalent to disabling Outlook indexing or stopping the Windows Search service.

The actual impact depends on the application, its indexing provider and its search configuration.

5. Re-enabling Indexing May Require Additional Processing

If content indexing is enabled again, Windows may need to process affected files and update its index.

During this period, background processor and storage activity may temporarily increase, and search results may remain incomplete until indexing has progressed sufficiently.

Drive Compression and File Indexing on SSDs and HDDs

Mechanical Hard Disk Drives (HDDs)

Mechanical hard drives use rotating magnetic platters and moving read and write heads. Their performance is particularly sensitive to random storage access and competing disk operations.

NTFS compression may reduce physical data transfers for compressible files. However, additional processing and file fragmentation can offset those benefits.

Content indexing can create noticeable background disk activity on slower HDDs, especially during initial indexing or when large numbers of files change.

For HDD-based computers, selective compression and carefully configured indexing locations may provide a better balance than enabling or disabling either feature across every drive.

SATA Solid-State Drives (SSDs)

SATA SSDs provide much lower access latency than mechanical hard drives and do not use moving mechanical components.

Because file access is already relatively fast, the performance benefits of compression are less predictable. Compression may still be useful when storage capacity is limited.

Windows Search indexing generally remains useful on SATA SSDs, particularly for users who frequently search document contents.

NVMe Solid-State Drives

NVMe SSDs can provide substantially higher storage throughput and lower latency than many SATA-based storage devices.

On these systems, compression and decompression overhead may become more relevant because the storage device itself is less likely to be the primary bottleneck.

For most NVMe-equipped computers with sufficient free space, drive-wide compression is unnecessary.

Content indexing should normally remain enabled for useful search locations unless a specific workload or measured performance problem justifies changing it.

Storage Device Comparison

Storage Device Drive Compression Content Indexing
Older mechanical HDD Use selectively and evaluate performance Exclude unnecessary locations if background activity is excessive
Modern mechanical HDD Useful for compressible archives Enable for frequently searched documents
SATA SSD Optional when storage space is limited Generally keep enabled for useful locations
NVMe SSD Generally unnecessary when sufficient space is available Generally keep enabled for useful locations
External backup drive Depends on backup format and software compatibility Usually unnecessary if contents are rarely searched
Archive storage drive Useful for suitable uncompressed data Depends on archive search requirements

These are general technical recommendations rather than universal performance rules or manufacturer-mandated configurations.

Does Disabling Indexing Increase SSD Lifespan?

SSDs use flash memory with a finite write endurance. Because Windows Search maintains and updates an index database, indexing contributes to storage write activity.

Reducing unnecessary indexing can reduce some of these writes. However, it does not automatically produce a meaningful increase in SSD lifespan.

SSD endurance depends on multiple factors, including:

  • The SSD's rated write endurance.
  • Total data written by applications and Windows.
  • Storage controller efficiency.
  • Available free space.
  • Workload characteristics.
  • Internal wear-leveling and write amplification.

For normal desktop and office workloads, disabling useful Windows Search indexing solely to extend SSD lifespan is generally unnecessary.

It is more appropriate to evaluate the actual storage workload and exclude locations that do not benefit from indexing.

Does NTFS Compression Increase SSD Lifespan?

NTFS compression can reduce the amount of physical file data written by Windows when the data is sufficiently compressible.

However, enabling compression on existing files also requires processing and rewriting data. Subsequent modifications to compressed files can introduce additional file system activity.

The relationship between NTFS compression and SSD endurance is therefore not straightforward.

Compression should primarily be considered a storage space management feature, not a guaranteed SSD lifespan optimization technique.

What Happens When Drive Compression Is Enabled and Content Indexing Is Disabled Together?

Checking Compress this drive to save disk space while unchecking Allow files on this drive to have contents indexed in addition to file properties combines two independent configuration changes.

The resulting configuration may:

  • Reduce the physical storage requirements of compressible files.
  • Reduce unnecessary background content indexing activity.
  • Reduce future search index storage requirements.
  • Increase processor usage during compressed file operations.
  • Make content-based file searches slower or less comprehensive.
  • Temporarily increase disk activity while existing file attributes are being updated.

Disabling content indexing does not eliminate the processing overhead introduced by NTFS compression.

Similarly, enabling compression does not compensate for the loss of indexed content search functionality.

Comparison of All Four Configuration Combinations

Compression Content Indexing Result Suitable Use Case
Disabled Enabled Normal file storage with indexed content search General Windows system and office computers
Enabled Enabled Potential storage savings while retaining indexed content search Compressible document collections with limited storage
Disabled Disabled No NTFS compression overhead and reduced content indexing activity Performance-sensitive data and rarely searched media
Enabled Disabled Potential storage savings with reduced indexed search functionality Compressible archives and inactive technical records

The most appropriate combination depends on the purpose of the drive rather than its drive letter alone.

Recommended Settings for Different Computer Usage Scenarios

Usage Scenario Drive Compression Content Indexing
Windows system drive (C:) Disabled Enabled for useful locations
General home computer Disabled Enabled
Office and business computer Disabled or selective Enabled
Gaming computer Generally disabled Exclude game libraries if unnecessary
Software development workstation Selective compression for inactive projects Exclude generated files and unnecessary dependency folders
Database workstation or server Follow database vendor requirements Exclude database storage locations where appropriate
Virtual machine storage drive Generally disabled unless supported and tested Usually unnecessary for virtual disk files
Video and music storage drive Generally disabled Optional, depending on metadata and search requirements
Historical text and log archive Enabled selectively Optional, depending on search requirements
Backup drive Depends on backup software and data format Generally disabled or excluded from indexing
Computer with limited disk space Selective compression after storage cleanup Keep useful locations indexed
Older computer experiencing high disk usage Evaluate before enabling Investigate and exclude unnecessary locations

Should You Compress the Windows C: Drive?

For most users, compressing the entire Windows system drive is not recommended as a routine optimization measure.

The system drive normally contains:

  • Windows operating system files.
  • Installed applications.
  • Device drivers.
  • User profiles.
  • Application configuration files.
  • Temporary files and caches.
  • Windows Update components.
  • Frequently accessed system resources.

Many of these files are frequently accessed, already compressed or subject to application-specific requirements.

Applying NTFS compression to the entire drive may introduce processing overhead without delivering proportionate storage savings.

Better Alternatives for Freeing Space on the C: Drive

Before considering drive-wide compression, use safer and more targeted storage management methods:

  • Review storage usage under Windows Settings.
  • Use Storage Sense to manage eligible temporary files.
  • Remove unnecessary temporary files after reviewing their categories.
  • Uninstall applications that are no longer required.
  • Move large personal files to another suitable drive.
  • Review unused downloads and duplicate personal files.
  • Compress selected folders containing highly compressible data.
  • Consider upgrading storage capacity if the available space is consistently insufficient.

Do not manually delete unfamiliar files from the Windows directory or application installation folders simply to recover storage space.

Difference Between NTFS Compression and CompactOS

Windows also provides a feature called CompactOS, which is separate from the ordinary drive compression checkbox.

CompactOS is designed to reduce the storage footprint of Windows operating system binaries using Windows-managed compression mechanisms.

Feature NTFS Compression CompactOS
Primary purpose Compress eligible files and directories Reduce the Windows operating system footprint
Typical scope User-selected files, folders or drives Windows operating system binaries
Configuration method File Explorer or compact command CompactOS options of the compact command
Management File and directory compression attributes Windows operating system compression state

To check the current CompactOS state, open Command Prompt as an administrator and run:

compact /CompactOS:query

This is a diagnostic command that queries the current operating system compression state without enabling or disabling CompactOS.

A computer may use CompactOS even when the drive-wide NTFS compression checkbox is unchecked.

How to Enable or Disable Drive Compression in Windows 10 and Windows 11

Prerequisites and Precautions

  • Ensure that the target drive uses NTFS and supports compression.
  • Back up important files before applying drive-wide changes.
  • Ensure that sufficient free storage is available, particularly when disabling compression.
  • Close applications that are actively using files on the target drive.
  • Use an account with the necessary file permissions.
  • Administrator approval may be required for protected locations.
  • For laptops, connect the computer to a reliable power source during lengthy operations.

Enable Drive Compression

  1. Press Windows + E to open File Explorer.
  2. Select This PC.
  3. Right-click the drive that you want to compress.
  4. Select Properties.
  5. Open the General tab.
  6. Confirm that the file system is NTFS.
  7. Check Compress this drive to save disk space.
  8. Click Apply.
  9. When prompted, review the available options for applying the change to the drive only or to the drive, subfolders and files.
  10. Select the required scope.
  11. Click OK and allow Windows to complete the operation.

Applying the change only to the drive root does not necessarily compress all existing files. Applying it recursively attempts to update existing eligible files and subdirectories as well.

If Windows reports that certain protected or actively used files cannot be processed, do not modify system permissions or take ownership of protected operating system files merely to force compression.

Disable Drive Compression

  1. Open File Explorer and select This PC.
  2. Right-click the compressed drive.
  3. Select Properties.
  4. Open the General tab.
  5. Uncheck Compress this drive to save disk space.
  6. Click Apply.
  7. Select the recursive option if existing compressed files must also be decompressed.
  8. Click OK.
  9. Wait for Windows to complete the operation.

Important: Ensure that sufficient free space is available before decompressing a large amount of data. The operation may fail for some files if the drive becomes full.

How to Compress Only Selected Files and Folders

Selective compression allows users to obtain storage savings without applying compression to unrelated operating system or application files.

  1. Open File Explorer.
  2. Locate the file or folder that you want to compress.
  3. Right-click the item and select Properties.
  4. On the General tab, click Advanced.
  5. Locate the compression and encryption attributes.
  6. Check Compress contents to save disk space.
  7. Click OK.
  8. Click Apply.
  9. For a folder, select whether to apply the change to the folder only or to its subfolders and files as well.
  10. Click OK.

To reverse the change, return to the Advanced Attributes dialog, uncheck the compression option and apply the required scope.

How to Enable or Disable File Content Indexing for an Entire Drive

The following procedure applies to compatible drive properties in Windows 10 and Windows 11.

  1. Press Windows + E to open File Explorer.
  2. Select This PC.
  3. Right-click the required drive.
  4. Select Properties.
  5. Open the General tab.
  6. Locate Allow files on this drive to have contents indexed in addition to file properties.
  7. Uncheck the option to prevent content indexing for the selected scope, or check it to allow content indexing.
  8. Click Apply.
  9. When prompted, select whether to apply the change to the drive only or to its subfolders and files as well.
  10. Click OK.
  11. Allow Windows to complete the file attribute changes.

Applying this change to a drive containing a large number of files may take considerable time because Windows must update individual file and directory attributes.

Some protected or inaccessible files may retain their previous settings.

Re-enabling this checkbox makes affected files eligible for content indexing again. It does not automatically add the drive to the configured Windows Search indexing locations.

Better Alternative: Configure Windows Search Indexing Locations

Instead of changing content indexing attributes across an entire drive, most users can achieve a more targeted configuration by modifying Windows Search indexing locations.

This allows frequently searched documents to remain indexed while excluding large archives, backups, temporary directories and other unnecessary locations.

Windows 10

  1. Open Settings.
  2. Select Search.
  3. Select Searching Windows.
  4. Review the configured search mode and excluded folders.
  5. Open the advanced search indexing settings where available.
  6. Modify the indexed locations according to your requirements.

Windows 11

  1. Open Settings.
  2. Select Privacy & security.
  3. Open Searching Windows or Search, depending on the installed Windows version.
  4. Review the configured file search mode.
  5. Review the excluded folders and advanced indexing options.
  6. Add or remove locations according to your search requirements.

Settings names and navigation paths may vary slightly between Windows builds and updates.

Using Control Panel Indexing Options

The traditional Indexing Options interface provides a common configuration method for Windows 10 and Windows 11.

  1. Open the Start menu.
  2. Search for Indexing Options.
  3. Open Indexing Options.
  4. Click Modify.
  5. Click Show all locations if required and available.
  6. Select the folders that should be indexed.
  7. Clear unnecessary locations.
  8. Click OK.
  9. Click Close.

Administrator approval may be required when modifying certain system-wide indexing locations.

Classic and Enhanced Search Indexing Modes

Windows provides different indexing modes to balance search coverage and system resource usage.

Feature Classic Enhanced
Search coverage Common user folders and configured locations Broader coverage across the computer
Resource requirements Generally lower Potentially higher
Initial indexing time Generally shorter Potentially longer
Suitable users Users who store files in standard locations Users who store and search files across multiple locations
Customization Additional indexed locations can be configured Unnecessary locations can be excluded

Enhanced indexing does not mean that every file is necessarily indexed. Windows exclusions, access permissions, file attributes and supported file types continue to influence indexing behavior.

Classic indexing is generally a suitable starting point for users who want useful search functionality without unnecessarily broad indexing coverage.

How to Configure Indexing for Specific File Types

Windows allows administrators and users with the necessary permissions to control whether particular file types are indexed using their properties only or both their properties and contents.

  1. Open Indexing Options.
  2. Click Advanced.
  3. Approve the administrator prompt if displayed.
  4. Open the File Types tab.
  5. Select the required file extension.
  6. Choose Index Properties Only or Index Properties and File Contents.
  7. Click OK.

This approach is useful when users want to retain file name and property searches but do not need indexed content searches for particular file formats.

Successful content indexing also depends on whether Windows has a suitable handler capable of extracting information from the selected file format.

Difference Between Disabling Content Indexing and Disabling the Windows Search Service

Unchecking the content indexing option in drive properties is not equivalent to disabling the Windows Search service.

The Windows Search service uses the service name WSearch and manages important components of the Windows indexing infrastructure.

Configuration Scope Effect
Uncheck drive content indexing Affected files and directories Restricts eligibility for content indexing
Remove a location from Indexing Options Selected indexing location Excludes the location from configured index coverage
Configure properties-only indexing Selected file type Retains property indexing without extracting file contents
Disable the Windows Search service System-wide indexing infrastructure Interrupts indexing and may affect dependent search features and applications

Disabling the Windows Search service is a much broader configuration change and should not be used as a routine SSD optimization or general Windows performance tweak.

When indexing causes excessive resource usage, investigate the indexing configuration and exclude unnecessary locations before considering service-level changes.

How to Check Compression and Indexing Attributes Using Windows Commands

Windows includes command-line utilities that can be used to inspect file attributes and compression status.

The following examples are diagnostic operations. They do not enable or disable compression or indexing.

Replace the example drive letter and folder path with an existing location on your computer. Administrator privileges are not normally required for accessible personal files, but protected locations may require additional permissions.

Check NTFS Compression Status

Open Command Prompt and run:

compact /s:"D:\Documents"

The command displays compression information for files within the specified directory and its subdirectories.

The /s parameter includes subdirectories. Because neither the compression nor decompression parameter is specified, the command reports compression information without requesting a compression change.

Scanning a large directory may take time.

Check the Windows Search Service Status

Open Command Prompt and run:

sc.exe query WSearch

The command displays the current status of the Windows Search service.

Common service states include:

  • RUNNING: The service is currently running.
  • STOPPED: The service is not currently running.

A running service does not necessarily mean that every drive or file is being indexed. Similarly, a stopped service does not by itself identify why indexing is unavailable.

Check the Not Content Indexed Attribute

Open PowerShell and run:

Get-Item -LiteralPath "D:\Documents" |
    Select-Object FullName, Attributes

If the returned attributes include NotContentIndexed, the specified item is marked as not eligible for content indexing.

If the attributes include Compressed, the specified item has the NTFS compression attribute.

For a directory, these attributes do not prove that every existing file and subdirectory has the same configuration. Individual items may have different attributes.

The absence of NotContentIndexed also does not prove that the item is currently indexed. Windows Search location settings and file type configuration must be considered separately.

How to Verify Whether Compression Is Beneficial

Rather than compressing an entire drive immediately, test the feature using a representative folder containing non-critical data.

  1. Create or verify a backup of the test files.
  2. Record the folder's logical size and size on disk.
  3. Record the available free space on the drive.
  4. Measure representative file opening, reading or processing operations.
  5. Enable compression on the selected test folder.
  6. Wait for the compression operation to complete.
  7. Compare the new size on disk with the original measurement.
  8. Repeat the same file operations under comparable conditions.
  9. Observe processor usage and disk activity.
  10. Retain compression only if the storage savings justify any observed performance impact.

Windows Task Manager and Resource Monitor can help observe processor usage, disk activity and application behavior during testing.

For more reliable comparisons, repeat tests and account for file caching, background applications and other workload differences.

How to Verify Whether Disabling Indexing Improves Performance

Before changing indexing settings, determine whether Windows Search is actually responsible for the performance problem.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Review processor and disk utilization.
  3. Look for Windows Search-related processes, including SearchIndexer.exe.
  4. Open Indexing Options and review the current indexing status.
  5. Determine whether Windows is performing initial indexing or processing recently changed files.
  6. Identify unnecessary locations included in the index.
  7. Exclude those locations or adjust their content indexing settings.
  8. Allow Windows to finish updating its indexing configuration.
  9. Compare resource usage under similar workload conditions.
  10. Verify that frequently used file searches still provide acceptable results.

High disk usage can also result from Windows Update, antivirus scanning, insufficient memory, application activity, storage device problems and other background operations.

Do not assume that Windows Search is responsible for high disk utilization without checking the actual processes and workload.

Common Problems and Troubleshooting

Drive Compression Option Is Missing

Possible reasons include an unsupported file system, an unsupported allocation unit size or restrictions imposed by the storage configuration.

Check the drive's file system in File Explorer properties. Standard NTFS compression cannot be enabled through this option on FAT32 or exFAT volumes.

Do not reformat a drive merely to obtain compression functionality without first considering data preservation, compatibility and alternative storage management options.

Access Denied While Applying Drive Attributes

Windows may display an access denied message when attempting to modify protected, inaccessible or actively used files.

Close applications that are using the affected files and verify that your account has the necessary permissions.

For protected Windows files, do not change ownership or weaken security permissions simply to apply compression or indexing attributes.

If certain files are skipped, the drive may contain a mixture of old and new attribute settings.

Computer Becomes Slow After Enabling Compression

First determine whether the initial compression operation is still running. Temporary performance degradation during bulk compression does not necessarily indicate a permanent problem.

If performance remains reduced after compression has completed, identify the affected applications and consider disabling compression for their data directories.

Ensure sufficient free space is available before decompressing files.

File Searches Become Slow After Disabling Indexing

Slower content-based searches are an expected possible consequence of disabling content indexing.

Re-enable content indexing for frequently searched folders and verify that those folders are included in Indexing Options.

Allow Windows sufficient time to update the search index.

Search Results Remain Incomplete After Re-enabling Indexing

Confirm that:

  • The Windows Search service is functioning.
  • The affected folder is included in configured indexing locations.
  • The affected files are eligible for content indexing.
  • The required file types are configured for content indexing.
  • Suitable file handlers are available.
  • Windows has had sufficient time to process the changes.

If the search index appears to be inconsistent after these checks, rebuilding it through the Advanced settings in Indexing Options may help.

Rebuilding the index temporarily increases background resource usage and can make search results incomplete until the rebuilding process progresses.

Disk Space Does Not Increase Significantly After Compression

This may occur when most files are already compressed, encrypted or otherwise difficult to compress.

Compare the size and size on disk of representative files to determine whether meaningful compression savings are being achieved.

If the storage savings are negligible, disabling compression for those files may avoid unnecessary processing overhead.

Frequently Asked Questions

Does NTFS Compression Reduce File Quality?

No. NTFS compression is lossless. It does not intentionally reduce image quality, audio quality, video quality or document accuracy.

The original logical file contents remain available after decompression.

Can Compressed Files Be Opened Normally?

Yes. Windows automatically handles decompression when applications access NTFS-compressed files. Most applications do not require a separate extraction procedure.

Application-specific storage restrictions may still apply.

Does Compressing a Drive Make Windows Faster?

Not necessarily. Compression can reduce physical storage transfers but introduces additional processing requirements.

Performance may improve, remain unchanged or decrease depending on the processor, storage device, file types and workload.

Will Disabling Content Indexing Increase RAM?

No. Disabling content indexing does not increase installed physical memory.

Reducing indexing activity may reduce some temporary memory usage associated with indexing operations, but it does not guarantee a meaningful increase in available memory.

Will Disabling Indexing Fix 100 Percent Disk Usage?

It may help if Windows Search is confirmed to be a significant contributor to the excessive disk activity.

However, 100 percent disk utilization can have many other causes. Disabling indexing is not a universal solution.

Can I Still Search for Files After Disabling Content Indexing?

Yes. File name searches remain possible.

Some content searches may also remain available through direct file scanning or independent application search mechanisms, although they may be slower or behave differently.

Does Disabling Content Indexing Delete My Files?

No. Changing the content indexing attribute does not delete the affected files or modify their logical contents.

Does Enabling Compression Change File Extensions?

No. NTFS compression does not change file extensions or convert files into ZIP archives.

Why Do Some Files Display Two Blue Arrows?

In standard Windows File Explorer configurations, two blue arrows appearing on a file or folder icon commonly indicate NTFS compression.

Depending on File Explorer settings and the Windows version, compressed items may also be displayed using different name colors or visual indicators.

Can I Compress Only the D: Drive and Leave the C: Drive Uncompressed?

Yes. Compression can be configured independently for compatible drives, folders and files.

For example, a user can leave the Windows system drive uncompressed while compressing selected archive folders on a separate data drive.

Does NTFS Compression Provide Data Encryption?

No. Compression reduces storage requirements but does not provide confidentiality or protection against unauthorized access.

Use appropriate encryption and access control technologies when data security is required.

Will Files Remain Compressed When Copied to Another Drive?

Not necessarily. NTFS compression is a file system attribute rather than an archive format.

When files are copied, their resulting compression state depends on the destination file system, destination directory settings and copying mechanism.

Copying a file to a file system that does not support NTFS compression will not preserve that NTFS compression attribute.

Is Compression Suitable for Backup Files?

It depends on the backup format and software requirements.

Backup files that already use compression or encryption may gain little additional storage savings. Some backup applications may also have specific requirements concerning file system compression.

Check the backup software documentation before applying compression to its storage repository.

Does Disabling Content Indexing Improve Privacy?

It can reduce the amount of eligible file content collected by the Windows Search content index.

However, it does not prevent applications, administrators or other authorized processes from accessing the original files. It is not a replacement for file permissions, encryption or appropriate privacy controls.

Does Windows 11 Improved Search on Copilot+ PCs Change These Recommendations?

Supported Copilot+ PCs can use additional semantic indexing capabilities alongside traditional indexing to improve searches for supported content.

Users of these devices should review the current Windows Search settings and available exclusion controls rather than assuming that a traditional drive-level attribute disables every modern search capability.

Are These Settings the Same in Windows 10 and Windows 11?

The underlying NTFS compression and content indexing attributes are available in both operating systems.

The traditional drive properties interface is broadly similar, although Windows Search settings, available search features and Settings navigation paths may differ between versions and builds.

Standard support for Windows 10 ended on October 14, 2025. Extended Security Updates and editions with different lifecycle arrangements may have separate support periods. Storage optimization settings do not replace the need for a supported and securely maintained operating system.

Final Recommendations

The best configuration depends on the purpose of the storage drive, the types of files it contains and the user's search requirements.

Drive or Folder Purpose Compress Contents Allow Content Indexing
Windows system drive No, as a general recommendation Yes, for useful locations
Frequently used office documents Optional Yes
Game installation directories Generally no Usually unnecessary
Movies, music and compressed media Generally no Optional
Historical text and log archives Yes, if meaningful savings are achieved Optional
Backup repositories Depends on software and format Usually unnecessary
Active databases and virtual machines Generally no, subject to vendor requirements Usually unnecessary for the data files themselves
Temporary and generated files Generally no Exclude from indexing where appropriate

For a typical Windows 10 or Windows 11 computer equipped with a modern SSD and sufficient free storage, the preferred general-purpose configuration is:

  • Compress this drive to save disk space: Unchecked.
  • Allow files on this drive to have contents indexed in addition to file properties: Checked.
  • Windows Search service: Retain the normal Windows configuration.
  • Indexing locations: Include useful document locations and exclude unnecessary data directories.

For an NTFS data drive containing large amounts of highly compressible information that is rarely searched, enabling compression and disabling content indexing may be a reasonable configuration after testing.

For business-critical computers, apply changes selectively, verify application compatibility, maintain reliable backups and measure the actual benefits before deploying the same settings across multiple systems.

Key Takeaways

  • NTFS compression is primarily a disk space management feature, not a guaranteed performance optimization.
  • Content indexing is primarily a search performance feature, not an essential requirement for accessing files.
  • Compression and content indexing operate independently.
  • Disabling content indexing does not disable the entire Windows Search service.
  • Modern SSDs do not generally require indexing to be disabled.
  • Already compressed media and archive formats usually provide limited additional NTFS compression savings.
  • Selective folder compression is generally preferable to indiscriminate system drive compression.
  • Configuring indexing locations is generally preferable to disabling content indexing across every drive.
  • Both settings are reversible, although decompression requires sufficient storage and reindexing may take time.
  • Performance improvements should be verified through actual measurements rather than assumed.

Official Microsoft References

YOUR FEEDBACK

Was this guide useful?

Your answer helps us keep BISONKB accurate and practical.

Links are permitted only to published BISONKB articles.