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

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Windows 11 can request SMB compression to reduce the amount of data sent during a network file transfer. It does not permanently compress the source file, and there is no separate “Compress File Aggressively” switch required on updated systems: when compression is requested, supported Windows builds attempt it across the transfer without the older sampling test. Choose a client, share, mapped-drive, or one-copy setting based on how broadly you want compression applied.

What SMB compression changes—and what it does not

SMB compression operates while files are transferred over an SMB network connection. It can reduce network traffic and transfer time, but it uses additional CPU. Microsoft says it is most useful on lower-bandwidth links; on a fast, uncongested network, the benefit may be small. It does not change the file stored on disk.

Compression can be requested by the client, the server or share, a mapped drive, or an individual copy operation. Windows 11 and Windows Server 2022 or later support the feature. For the newer no-sampling behavior, Microsoft identifies Windows 11 KB5016691 (OS build 22000.918) and Windows Server 2022 KB5016693 (OS build 20348.946). See Microsoft’s SMB compression documentation for the supported configuration options.

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

Choose where to request compression

Scope Use it when Configuration
Client-wide You want this Windows client to request compression for SMB traffic broadly. Group Policy or client PowerShell configuration
Server-wide You administer the SMB server and want it to request compression for all shares. Group Policy or server PowerShell configuration
One share You administer the server and want the setting limited to a particular share. Set the share’s CompressData property
One mapped drive You want a particular mapped connection to request compression. New-SmbMapping or NET USE
One copy job You want compression only for a Robocopy or Xcopy transfer. Use the tool’s /COMPRESS option

Set a client-wide request

Use Group Policy

  1. Open the Local Group Policy Editor or the applicable Group Policy management console.
  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 this command:

#1 Best Overall
Sale
LAPGEAR Home Office Pro Lap Desk - Black Carbon, Fits 15.6” Laptops
  • Spacious Design: Measuring 21.1" wide and 14.1" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy ergonomic support with the integrated cushioned wrist rest.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a sleek black carbon color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.8 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
Set-SmbClientConfiguration -DisableCompression $true

The related policy is named Disable SMB Compression. The client configuration reference documents the request and sampling parameters at Set-SmbClientConfiguration.

Request compression from the server or for one share

All shares on a server

On the SMB server, configure the policy at Computer Configuration > Policies > Administrative Templates > Network > Lanman Server, then enable Request traffic compression for all shares. Alternatively, run elevated PowerShell on the server:

Rank #2
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Set-SmbServerConfiguration -RequestCompression $true

One share

To create a share that requests compression:

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

To enable it on an existing share:

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

These server and share settings are documented in Microsoft’s SMB compression guide. Microsoft says the changes take effect immediately without a reboot.

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

Limit the request to a mapped drive or copy operation

Map a drive with compression requested

In PowerShell, use the actual share path for your environment:

Rank #3
Sale
Yilador Webcam Cover 3 Pack, 0.03 inch Ultra Thin Laptop Camera Cover Slide
  • Note: Not suitable for MacBooks released after 2023 or devices with a protruding front camera; Not applicable to full-screen or notch-style tempered glass screen protectors; Do not use on the rear camera of the phone.
  • 💻 Why Do You Need a Webcam Cover Slide? — Safeguard your privacy by covering your webcam with our reliable webcam cover when not in use. Don't let anyone secretly watch you. Stay protected!
  • ✅ Thin & Stylish — Enhance your laptop's functionality and aesthetics with our 0.027" ultra-thin webcam covers. Seamlessly close your laptop while adding a touch of sophistication.
  • ✅ Fits Most Devices — Compatible with laptops, phones, tablets, desktops! Keep your privacy intact on Ap/ple, Mac/Book, iPh/one, iP/ad, H/P, L/novo, De/ll, Ac/er, As/us, Sa/msung devices.
  • ✅ 365 Days Protection — Our upgraded 3.0 adhesive ensures a strong hold that won't damage your equipment. Experience reliable, long-term privacy protection day in and day out.
New-SmbMapping -LocalPath "Z:" -RemotePath "\fs1.corp.contoso.comsales" -CompressNetworkTraffic $true

From Command Prompt, Microsoft also documents:

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

Request compression for a Robocopy or Xcopy job

Add /COMPRESS to the particular copy command. For example:

robocopy C:Source \fs1SalesBackup /E /COMPRESS

File Explorer, third-party tools, and applications need a compressed mapping, a share configured for compression, or a client configured to request it by default. A copy tool’s option applies to that tool’s job; it does not permanently compress the files.

Rank #4
AboveTEK Portable Laptop Lap Desk w/Retractable Left/Right Mouse Pad Tray, Non-Slip Heat Shield Tablet Notebook Computer Stand Table w/Sturdy Stable Work Surface for Bed Sofa Couch or Travel
  • Anti-Slip Surface - Transform your laptop into a mobile workstation with the AboveTEK portable laptop lap desk. The anti-slip surface provides a strong grip for laptops up to 15.6 inches(Diagonal), while the double rubber strip on the bottom ensures a stable display or typing experience on your lap, couch, or bed.
  • Retractable Mouse Pad - Retractable laptop mouse pad extends on both directions for the left/right handed with elevation along the edges for stopping mouse from falling off. The size of laptop tray is 14" X 9.7" and the size of mouse pad is 7.4" X 6.1".
  • Effective Heat Shield - The effective heat shield made of sturdy and thick material protects your laptop from overheating. Prioritizes your comfort and safety, an ideal lap pad or board for working anywhere.
  • EASY to Carry and Store - With an ergonomic and simplistic design, the lap desk is portable to store in a backpack. Only 15" in size, 2.2 lb of weight and with slim 0.6 inch thickness, it is ready to be easily carried around.
  • Widely Applicable - The smooth platform accommodates laptops and tablets up to 15.6 inches(Diagonal), making it a versatile accessory and one of the best gifts for mom, dad, students and professionals. Perfect for use as a laptop bed tray or tablet holder anywhere at home, library, or park.

What “aggressive” compression means on updated Windows

Earlier SMB compression behavior sampled the start of a file before deciding whether to continue. The original default examined the first 524,288,000 bytes (500 MiB); it continued if at least 104,857,600 bytes (100 MiB) compressed, and otherwise stopped trying for the remainder. Microsoft says that after Windows 11 KB5016691 and Windows Server 2022 KB5016693, compression requested by a client or server is attempted without sampling by default.

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

The client cmdlet exposes EnableCompressibilitySampling to re-enable sampling. When sampling is enabled without custom thresholds, Microsoft documents the same 500 MiB window and 100 MiB threshold. This option changes how compression is attempted, not whether a particular file is guaranteed to shrink or transfer faster. The cmdlet reference describes the parameter; do not lower thresholds on the assumption that doing so always improves performance.

Best Value
Sale
LAPGEAR Home Office Lap Desk – Pink, Fits 15.6” Laptops
  • Spacious Design: Measuring 21.1" wide and 12" deep, our lap desk comfortably fits most laptops up to 15.6". Extra room for accessories ensures convenience.
  • Enhanced Functionality: Packed with handy features, including a 5x9" precision tracking mouse pad and a built-in phone slot for seamless work or video calls. Plus, enjoy laptop support with the integrated device ledge.
  • Cool Comfort: Enjoy a stable surface with our lap desk's dual bolster cushion, designed for comfort and airflow, keeping your lap cool during extended use.
  • Durable Surface: Work with confidence on our lap desk's solid surface, featuring a blush pink color, ensuring optimal air circulation to prevent your laptop from overheating.
  • On-the-Go Convenience: With an integrated handle and lightweight design (2.14 lbs), our lap desk is portable for travel or moving around the house, offering flexibility in any space.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which files and connections are likely to benefit?

Compression is more promising for data that has not already been compressed, such as some virtual-machine disks, ISO images, and dump files. It is unlikely to significantly improve transfers of ZIP, 7z, or RAR archives, common MP4 or MKV video, or MP3 and FLAC audio. Microsoft’s guidance on these cases is in its slow SMB file transfer troubleshooting article.

Compression also cannot fix a bottleneck elsewhere. Microsoft 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 bottlenecks. These are troubleshooting estimates, not promised SMB copy speeds. If storage cannot supply data at the needed rate, requesting compression may not make the copy faster.

Compatibility limits to check

  • SMB Direct over RDMA: SMB compression does not support SMB Direct over RDMA. Windows does not compress SMB messages over RDMA, as described in the MS-SMB2 protocol behavior reference.
  • Other SMB features: Microsoft lists support for SMB signing, SMB encryption, SMB over QUIC, and SMB Multichannel alongside compression in its SMB compression documentation.
  • Algorithms: Windows 11 and Windows Server 2022 or later list XPRESS (LZ77), XPRESS Huffman (LZ77 plus Huffman), LZNT1, and PATTERN_V1. LZ4 is listed for Windows 11 24H2 or later and Windows Server 2025 or later. Windows negotiates an available algorithm supported by both ends. See Microsoft’s SMB feature overview.

Check performance without confusing compression with a fix

  1. Confirm that both ends support SMB compression and that the connection is not using SMB Direct over RDMA.
  2. Use a file likely to compress, rather than an archive or already-compressed media file.
  3. Choose the narrowest request scope that fits your goal: one copy, one mapping, one share, or the whole client/server.
  4. Compare transfer time and CPU use under the same network and storage conditions. A faster result is not guaranteed, particularly when the network is already fast or storage is the limiting factor.

Because policy and cmdlet availability can vary with Windows build, check the installed system’s current settings and Microsoft documentation before applying a broad change across managed devices.

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

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.