File System Compression Registry Locations in Windows

Windows catalogs file system compression behaviors, driver configurations, and algorithm handling within the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet hive. This article outlines the specific registry paths where Windows manages legacy NTFS compression settings, the modern Windows Overlay Filter (WOF) algorithms used by Compact OS, and file system-level exclusion rules.

Global NTFS Compression Settings

Global controls for traditional NTFS compression (which natively utilizes the LZNT1 algorithm) are located at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

Key values in this location include: * NtfsDisableCompression: A DWORD value that determines whether NTFS compression is globally enabled or disabled across all volumes. A value of 0 enables compression support, while 1 disables it system-wide.

Modern Compression Algorithms (WOF and Compact OS)

Modern system-level compression (such as Compact OS and system file compression) is managed by the Windows Overlay Filter (Wof.sys). This driver supports algorithms including XPRESS4K, XPRESS8K, XPRESS16K, and LZX. Configuration and driver parameters for these algorithms are cataloged at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wof

Additional operational and provider settings for individual storage volumes utilizing WOF-based compression reside under the subkeys: * HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wof\Parameters * HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Wof\Providers

Compression Exclusions and Rules

Exclusions for file system operations, file filtering, and components that should bypass compression routines are primarily cataloged under the central FileSystem control key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

For system-wide backup and maintenance exclusions where files must remain uncompressed or unmodified during image capture and volume snapshots, Windows references related storage exclusion rules at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupOperators

Specific file types and system files (such as boot loaders, paging files, and hibernation files) have hardcoded compression exclusions built directly into the NTFS kernel driver to prevent boot failures, while custom system deployment exclusions for Compact OS are governed through the associated Windows Imaging and WOF filter driver parameters.