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

For thousands of small files copied over an SMB share, start with Robocopy multithreading and a log: robocopy "C:\Source" "D:\Destination" /E /COPY:DAT /MT:16 /R:2 /W:5 /LOG:"C:\Logs\copy.log". Then test a few /MT values on the actual source and destination. Eight threads is Robocopy’s default, 128 is the documented maximum, and more threads can reduce performance instead of improving it.

Small-file copies are often limited by the repeated work of opening, creating, and closing each file, SMB metadata operations, storage latency, and antivirus inspection. Low network utilization does not prove that the network is the bottleneck. The procedure below shows how to choose a safe command, measure it, interpret the log, and avoid destructive switches.

The fastest safe starting command

Open Command Prompt or PowerShell and run a command like this, replacing every path with your own:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
robocopy "C:\Source" "D:\Destination" /E /COPY:DAT /MT:16 /R:2 /W:5 /LOG:"C:\Logs\copy.log"

This is a measured starting point, not a guaranteed optimum. It recursively copies files, includes empty directories, preserves data, attributes, and timestamps, uses 16 worker threads, retries a failed item twice, waits five seconds between retries, and writes output to a log file instead of constantly updating the console.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Create the log directory first if it does not exist. Make sure the destination has enough free space and that your account can read the source and write the destination. Do not put the log inside the source tree if another process may copy it during the run.

Why thousands of small files take so long

Microsoft describes a large small-file set as hundreds, thousands, or even millions of files generally under 1 MB. The bytes themselves may be modest, but each file requires separate SMB requests and file-system work. A single-threaded copy can spend more time creating directory entries and file objects than transferring file contents.

Antivirus software can also inspect every newly created file. On an SMB path, the source and destination each contribute latency, and the server may have to process metadata operations serially or in small batches. As a result, a transfer can show low network throughput while the disks, CPU, SMB server, or file-creation rate is the real limit.

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

Multithreading keeps additional files in flight while other files are being opened or created. Redirecting output with /LOG avoids spending the copy’s foreground time rendering status lines. These two changes are Microsoft’s recommended first experiment for small-file SMB transfers.

Prepare a test that tells you something

Use a representative sample

Do not tune against one unusually large file. Use a directory with the same approximate file-size distribution, directory depth, number of files, and source and destination type as the real job. A local SSD-to-SSD copy, a mapped drive, a Windows file server, and a cloud-backed file share can have very different bottlenecks.

Keep the comparison fair

Record the start and finish time for each run, and use the same source, destination, command options, and workload when changing only the thread count. If a previous run has already populated the destination, a later run may do less work; note that when comparing results.

  • Record whether the path is local storage or SMB/network storage.
  • Note the approximate number of files, total bytes, and directory depth.
  • Observe source and destination CPU, storage activity, and available network capacity.
  • Confirm that the metadata you need is represented by the copy switches.
  • Keep the log from every trial so errors and skipped files can be compared.

Choosing the /MT thread count

/MT:n enables multithreaded copying. The documented default when /MT is used without a number is eight threads. Robocopy accepts values from 1 through 128. Microsoft explicitly warns that too many threads may harm performance, so the highest number is a limit, not a target.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
Setting Meaning When to try it
/MT:8 Eight workers, also the documented default Baseline for a conservative test
/MT:16 Sixteen workers Practical first test for many SMB small-file jobs
/MT:20 Twenty workers Reported as a balanced range in one Azure Files migration scenario, not a universal optimum
/MT:32 or higher More concurrent work Only if measured results improve without saturating CPU, storage, or the server
/MT:128 Documented maximum Stress-test value, not a default recommendation

Run the same command at 8, 16, and one higher value such as 32, then keep the setting with the shortest successful elapsed time and an acceptable error count. If the destination becomes saturated, server latency rises, or elapsed time gets worse, reduce the thread count. A faster result on one directory does not establish a universal setting for every share.

Why more threads can be slower

Every worker consumes CPU, memory, file handles, and storage queue capacity. The SMB server may also have its own concurrency limits. With tiny files, workers can contend for the same directory metadata, disk, or antivirus scanner. Once those resources are saturated, additional threads add scheduling and queueing overhead instead of useful throughput.

What each switch in the starting command does

Switch Effect Important qualification
/E Copies subdirectories, including empty ones It does not delete unrelated destination content
/COPY:DAT Copies data, attributes, and timestamps The example does not request security metadata
/MT:16 Uses 16 copy threads Change it only after measuring the real workload
/R:2 Retries a failed file twice Replace the value when your outage or locking policy requires something else
/W:5 Waits five seconds between retries Short waits prevent a failed run from appearing hung
/LOG:'path' Writes command output to a log file Inspect the log after completion; use a writable, persistent location

The exact command uses double quotes around paths so spaces are handled correctly. In this article those quotes are displayed as HTML entities, but you should paste ordinary double quotes into the Windows command line.

Set retry and wait limits deliberately

Robocopy’s documented defaults are extremely generous: up to 1,000,000 retries with a 30-second wait between attempts. A locked file, disconnected share, or permission problem can therefore make a command continue for a very long time. Explicit /R and /W values make the run observable and easier to recover.

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

/R:2 /W:5 is suitable for a first test where you want a quick failure signal. For a production copy across an unreliable link, choose values that match the expected outage duration rather than blindly copying this example. A low retry count does not repair a persistent permission problem; it simply lets the run finish and report the failure so you can correct the cause.

Always create and inspect a log

Microsoft recommends creating a log and checking it after the command completes. A log lets you distinguish copied files from skipped files, retries, access failures, and other conditions without relying on a scrolling console window.

Use a unique log path for each trial when tuning. After the run:

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
  1. Open the log and check the final summary for the number of files copied, skipped, failed, and mismatched.
  2. Search for terms such as ERROR, Access is denied, or unavailable paths.
  3. Confirm that the destination contains the expected top-level directories and representative files.
  4. If files failed, fix the underlying lock, permission, connectivity, or capacity issue and rerun with the same bounded retry policy.

Do not judge success solely by elapsed time. A fast command that skipped files or ended with errors is not a successful migration.

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

Protect the destination: understand /MIR

Do not add /MIR to a normal copy merely because it sounds faster. Microsoft defines /MIR as equivalent to /E plus /PURGE. It makes the destination match the source by deleting destination files and directories that are not present in the source.

Use /MIR only when deletion is an intentional part of the job and you have verified the source and destination paths. For a one-way population copy where existing destination files must remain, use /E without /MIR. Treat a mirror as a synchronization operation with destructive consequences, not as a multithreading switch.

Metadata and directory choices

The example’s /COPY:DAT preserves file data, attributes, and timestamps. That is appropriate when ordinary file content and those standard timestamps are required. It does not request security information, so do not assume that destination access-control lists, owner information, or auditing metadata have been reproduced.

/E creates the complete directory tree, including empty directories. If empty folders are irrelevant, a different directory-selection policy may reduce work, but change that only when you are certain the omitted structure is not needed by applications or users.

Free tools Windows power users keep installed

One-click scans. No signup required.

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

When archiving can help—and when it cannot

Combining many small files into an archive can reduce the number of individual file operations during the network transfer. However, Microsoft cautions that the end-to-end result depends on compression and decompression speed. You must include the time to create the archive and extract it when comparing it with Robocopy.

Fast or no-compression modes reduce processing overhead, but they also provide less size reduction. Archiving is therefore an experiment for a specific workload, not a guaranteed optimization. Keep the original file hierarchy and metadata requirements in mind; an archive workflow may not preserve every property represented by a direct file copy.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

Local disks, SMB shares, and cloud-backed paths are different

Local-to-local copies

Local storage can be limited by the source disk, destination disk, filesystem metadata work, CPU, or antivirus scanning. The SMB-specific recommendation still provides a useful multithreaded test, but the best thread count may differ from a network copy. Measure on the actual disks and avoid assuming that network-oriented results transfer to a local path.

SMB file shares

The guidance is strongest for SMB small-file transfers. Network bandwidth is only one part of the path: each file also causes protocol and server work. Test the source and destination share directly, and watch for server-side load or intermittent connectivity. A low network graph can be normal when metadata and file creation dominate.

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

Azure Files migrations

Microsoft’s Azure Files migration guidance reports balanced initial-copy performance with roughly 8 to 20 threads for that particular service and scenario. It also demonstrates a command using 16 threads, low retry values, and a repeat run to copy changes after the first pass. Treat those values as Azure-specific guidance, not as a universal Windows setting; follow the migration procedure for the service and validate the result in your tenant.

Azure Data Box Disk

For Azure Data Box Disk, Microsoft gives a separate scenario-specific recommendation for mostly small files under 512 KB: four Robocopy sessions with 16 threads per session. The same guidance states a per-session ceiling of 7,000 directories and 150 million files. Those figures describe the Data Box Disk workflow and constraints; they are not general Robocopy limits and should not be applied to an ordinary disk or SMB share.

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

Common failure symptoms and fixes

The command appears to run forever

Check whether you left the defaults in place. One million retries with a 30-second wait can create extremely long pauses. Stop the run if appropriate, correct the command to include bounded /R and /W values, and inspect the log for the first recurring failure rather than repeatedly waiting on the same item.

Throughput is low even though the network is idle

That pattern is consistent with small-file overhead. Examine source and destination storage activity, CPU, antivirus activity, and server responsiveness. Test a higher thread count, but stop increasing it when elapsed time stops improving or resource contention appears.

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

More threads made the copy slower

Reduce /MT and retest. Microsoft warns that too many threads may harm performance. Contention for disk queues, directory metadata, CPU, or server resources can outweigh the benefit of parallelism.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

Files are missing from the destination

Read the log summary and error lines. Check for access-denied messages, disconnected shares, source files locked during the run, and destination capacity. A bounded retry policy exposes these conditions sooner; it does not silently make them successful.

The destination lost files

Check whether /MIR or another purge behavior was used. A mirror intentionally deletes destination-only content. For a non-destructive copy, remove /MIR and use /E when empty directories are required.

The command fails before copying

Verify that both quoted paths exist, the log directory is writable, the source account has read access, and the destination account has create and write access. Test the share in File Explorer or with a small, noncritical directory before launching a large run.

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.

A repeatable tuning procedure

  1. Choose a representative source tree and confirm the destination is safe to modify.
  2. Create a writable log directory outside the source tree.
  3. Run the starting command with /MT:8, bounded retries, and logging.
  4. Record elapsed time, copied and failed counts, and resource behavior.
  5. Repeat with /MT:16, changing no other option.
  6. If the result improves and resources remain healthy, test one higher value such as 32; if it worsens, return to the faster lower value.
  7. Open every log, resolve errors, and rerun until the final summary matches the required file set.
  8. For a second pass after the source changes, rerun the same non-destructive command and verify the log again.

This procedure gives you a workload-specific setting rather than an unsupported promise of a particular speedup. The optimum depends on file count, file-size distribution, directory depth, storage, server behavior, and whether antivirus or other software is inspecting each file.

Practical command variants

Conservative baseline

robocopy "C:\Source" "D:\Destination" /E /COPY:DAT /MT:8 /R:2 /W:5 /LOG:"C:\Logs\copy-8.log"

Use this to establish the documented eight-thread baseline.

Moderate parallel copy

robocopy "C:\Source" "D:\Destination" /E /COPY:DAT /MT:16 /R:2 /W:5 /LOG:"C:\Logs\copy-16.log"

This is the practical first experiment for many SMB small-file jobs, not a benchmark-backed guarantee.

High-concurrency test

robocopy "C:\Source" "D:\Destination" /E /COPY:DAT /MT:32 /R:2 /W:5 /LOG:"C:\Logs\copy-32.log"

Use only as a comparison trial. Keep it if it measurably reduces successful elapsed time without increasing failures or destabilizing the source, destination, or server.

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

Final checklist before you start

  • Confirm whether the transfer is local, SMB, Azure Files, or Data Box Disk.
  • Count the approximate files and identify whether most are below 1 MB or, for the Data Box scenario, below 512 KB.
  • Choose a representative test set.
  • Start with /MT:8 or /MT:16; do not jump straight to 128.
  • Set explicit /R and /W values.
  • Use /LOG and inspect the completed log.
  • Use /E for a normal recursive copy and avoid /MIR unless destination deletion is intentional.
  • Verify that the selected copy flags preserve the data, attributes, timestamps, and any other metadata your application requires.
  • Compare complete end-to-end time if you try archiving.
  • Do not treat a thread count from a cloud or appliance migration guide as a universal Windows rule.

For most Windows SMB jobs involving thousands of small files, the reliable path is simple: use Robocopy with a moderate /MT value, redirect output to a log, bound retries, test on the real workload, and select the fastest setting that completes without errors. That approach addresses the file-creation bottleneck without turning a routine copy into an accidental destructive mirror.

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.