Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Redmond desk5 min

Windows 11 SMB Compression: What “Compress File Aggressively” Does and How to Use It

Windows 11 SMB compression works during network transfers. Choose a client, share, mapped-drive, or copy-level setting—and use it where compressible data and network limits make it worthwhile.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Windows 11’s “Compress File Aggressively” behavior applies to files while they travel over an SMB network connection; it does not permanently compress the source file on disk. On updated Windows 11, when a client or server requests SMB compression, Windows attempts it across the requested file without the original sampling cutoff. Use a client-wide setting for all suitable transfers, a share or mapped-drive setting for a narrower scope, or a copy command for a single job. Compression is most useful when the data can shrink and network bandwidth is the bottleneck.

What “Compress File Aggressively” means

SMB compression is a transfer-time feature. It can reduce the amount of data sent across a network, potentially shortening transfer time while using additional CPU. It does not change the file’s stored format or make a permanent compressed copy.

As an Amazon Associate I earn from qualifying purchases.

The phrase “aggressively” refers to whether Windows samples part of a file before deciding to continue compressing it. In the original behavior, SMB tested the first 500 MiB (524,288,000 bytes). If at least 100 MiB (104,857,600 bytes) compressed, it continued attempting compression; if less compressed, it stopped for the rest of that file. Following Windows 11 update KB5016691 (OS build 22000.918) and Windows Server 2022 update KB5016693 (OS build 20348.946), Microsoft documents that SMB attempts compression without sampling by default when compression is requested. This does not guarantee a faster copy: incompressible data can still cost CPU without meaningfully reducing network traffic. Microsoft’s SMB Compression documentation describes the current behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose where to request compression

Pick the narrowest scope that matches the task. A client setting applies to transfers initiated from that computer; a server setting or share flag controls requests from the server side; mapping and copy options are useful when you want to target a connection or operation.

#1 Best Overall
Dell Windows 11 Desktop Computer OptiPlex 5060 | Intel Core i5-8500 Six Core (4.3GHz Turbo) | 16GB DDR4 RAM | 500GB SSD Solid State + 1TB HDD | WiFi + Bluetooth | Home or Office PC (Renewed)
  • Connectivity: Includes WiFi, Bluetooth, and LAN for wireless and wired connections
  • Memory: Features 16GB DDR4 RAM for smooth multitasking and performance
  • Storage: Combines 500GB SSD and 1TB HDD for ample storage space
  • Graphics: Integrated Intel UHD Graphics 630 for crisp visuals and video playback
  • Design: Sleek desktop tower with black color and slim profile for modern look
Scope How to request it Use when
Client-wide Group Policy or Set-SmbClientConfiguration -RequestCompression $true You want the client to request compression generally.
Server-wide Group Policy or Set-SmbServerConfiguration -RequestCompression $true You administer the server and want it to request compression across shares.
One share New-SmbShare or Set-SmbShare with -CompressData $true You want to configure a particular share rather than the whole server.
One mapped connection New-SmbMapping with -CompressNetworkTraffic $true, or NET USE with /REQUESTCOMPRESSION:YES You want compression associated with a mapped drive.
One copy operation Robocopy or Xcopy with /COMPRESS You want to request it for a specific copy job.

These options are documented in Microsoft’s SMB Compression guidance. File Explorer, applications, and third-party copy tools need a compressed mapping, a share configured for compression, or an always-compress client setting to use it.

Set compression on a Windows 11 client

Use Group Policy

  1. Open the Local Group Policy Editor or the relevant domain policy editor.
  2. Go to Computer Configuration > Policies > Administrative Templates > Network > Lanman Workstation.
  3. Enable Use SMB Compression by Default.

Use elevated PowerShell

Run PowerShell as an administrator and enter:

Set-SmbClientConfiguration -RequestCompression $true

To stop the client from requesting compression, Microsoft documents:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set-SmbClientConfiguration -DisableCompression $true

The corresponding policy is Disable SMB Compression. The client configuration reference explains the relevant switches and sampling option: Set-SmbClientConfiguration.

Configure requests on a server or share

Request compression across server shares

In Group Policy, go to Computer Configuration > Policies > Administrative Templates > Network > Lanman Server and enable Request traffic compression for all shares. Alternatively, from elevated PowerShell, run:

Set-SmbServerConfiguration -RequestCompression $true

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Dell Optiplex 3060 Desktop Computer | Intel i5-8500 (3.2) | 32GB DDR4 RAM | 1TB SSD Solid State | Built in WiFi | Bluetooth | Windows 11 Professional | Home or Office PC (Renewed)
  • [INTEL POWERED CONTENT] - Built with a 8th Generation Hexa-Core Intel i5 and 32GB of DDR4 RAM; Modern, Windows 11 ready, with 4K support, Executive multitasking, media streaming and smooth, multi-tab web browsing; Perfect as an all-purpose multimedia computer; built for content creators; Plenty of RAM and Mass storage for photo and video editing powered by Intel HD 630
  • [LATEST WIRELESS TECH] - This Dell Desktop Computer easily connects to the internet through the Built In WiFi / Bluetooth
  • [SOLID STATE STORAGE] - This Dell Computer setup comes with an ultra-fast 1TB Solid State Drive (SSD); Setup as the primary boot device; Boot and load programs with lightning speed ; Additional expansion available
  • [BUY & OWN WITH CONFIDENCE] - From the world's largest Microsoft Authorized Refurbisher; Quality Guarantee and Free Tech Support; Award-winning Customer Service; | Support Sustainable Business
  • [MODERN HI-SPEED PORTS] - USB 3.0 (x4) | USB 2.0 (x4) | DisplayPort (x1) | HDMI Port (x1) | Audio Combo Jack (x1) | Audio Out (x1) | RJ-45 Ethernet (x1) | Internal SATA (x3)

Set compression for one share

When creating a share, include -CompressData $true:

New-SmbShare -Name "Sales" -Path "C:sales" -CompressData $true

For an existing share, run:

Set-SmbShare -Name "Sales" -CompressData $true

Microsoft says these SMB configuration changes take effect immediately without a reboot. Confirm that the intended client or share is the one requesting compression before applying a broad setting. Microsoft’s configuration examples cover both scopes.

Request compression for a mapping or a single copy

Mapped drive

To create a mapped drive that requests compressed network traffic, use elevated PowerShell:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

New-SmbMapping -LocalPath "Z:" -RemotePath "\fs1.corp.contoso.comsales" -CompressNetworkTraffic $true

From Command Prompt, the documented alternative is:

NET USE * \fs1.corp.contoso.comsales /REQUESTCOMPRESSION:YES

Rank #3
Dell Optiplex 7050 SFF Desktop PC Intel i7-7700 4-Cores 3.60GHz 32GB DDR4 1TB SSD WiFi BT HDMI Duel Monitor Support Windows 11 Pro Excellent Condition(Renewed)
  • Model: Dell OptiPlex 7050 Small Form Factor (SFF)
  • Processor: Intel Core i7-7700 3.60 GHz
  • Memory: 32GB DDR4 Ram
  • Storage: 1TB Solid State Drive (SSD) Fast Boot + Storage
  • Operating System: Windows 11 Pro (64-bit)

One-off copy

Add /COMPRESS to a Robocopy or Xcopy command to request compression for that copy. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

robocopy C:source \fs1salesbackup /E /COMPRESS

These options request compression; they do not override the limits of the data or the network. Refer to Microsoft’s SMB Compression documentation for the tool-specific behavior.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When compression helps—and when it does not

Compression is most promising when the network link is constrained and the data has patterns that compress well. Microsoft identifies VM disks, ISO images, and dump files as examples of suitable data. ZIP, 7z, and RAR archives, as well as common compressed audio and video formats such as MP3, FLAC, MP4, and MKV, generally do not gain significant performance from SMB compression.

  • Likely candidate: large, compressible data crossing a lower-bandwidth link.
  • Unlikely candidate: already-compressed archives or media, or a transfer limited by storage throughput rather than network bandwidth.
  • Possible trade-off: additional CPU work for little or no reduction in bytes sent.

Microsoft’s slow-transfer guidance gives approximate storage throughput requirements of 110 MB/s per 1 Gbps, 1.1 GB/s per 10 Gbps, and 11 GB/s per 100 Gbps, assuming no other bottleneck. These are troubleshooting estimates, not guaranteed SMB transfer speeds. If storage cannot sustain the rate implied by the network, enabling compression may not solve the problem. See Microsoft’s SMB slow-transfer troubleshooting guidance.

Sampling controls and Windows versions

On the updated Windows releases described above, no sampling is the default when a client or server requests compression. The EnableCompressibilitySampling option in the client configuration reference re-enables sampling. When sampling is enabled without explicitly specified thresholds, Microsoft documents the original example: test the first 500 MiB and continue only if at least 100 MiB compresses. This is a behavior control, not a universally recommended performance setting; changing thresholds does not guarantee faster transfers.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

SMB compression is supported on Windows 11 and Windows Server 2022 or later. Microsoft’s feature overview lists XPRESS (LZ77), XPRESS Huffman, LZNT1, and PATTERN_V1 for Windows 11 and Windows Server 2022 and later. LZ4 is listed for Windows 11 version 24H2 and later and Windows Server 2025 and later; Windows negotiates an available algorithm supported by both ends. See Microsoft’s SMB feature overview.

Compatibility limits and troubleshooting

SMB compression supports SMB signing, encryption, SMB over QUIC, and SMB Multichannel, but not SMB Direct over RDMA. Windows does not compress SMB messages over RDMA. The protocol behavior reference is available at Microsoft’s MS-SMB2 specification.

Quick Recap

  • If a transfer is not compressing, check whether compression is requested at the client, server/share, mapping, or copy-operation scope you chose.
  • If a copy is no faster, check whether the file is already compressed and whether storage or CPU, rather than network bandwidth, is the limiting resource.
  • Before deploying a policy broadly, verify that the setting and cmdlet are available on the Windows builds in use.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

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

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.