Skip to content
Follow
Windows

Speed Up File Transfers in Windows 11 with Robocopy

Richard
Written by
Richard
Jun 22, 2023 Updated Oct 7, 2026 5 min read
How to Lock and Unlock OneDrive Personal Vault in Windows 11
How to Lock and Unlock OneDrive Personal Vault in Windows 11

Robocopy is a built-in Windows 11 command-line tool that moves large folders and big files much faster than dragging them in File Explorer . The name is short for Robust File Copy. It copies in the background, can resume after an interruption, and doesn’t freeze or slow down your PC the way a long File Explorer copy can.

Advertisement

You can speed up network transfers even more by combining Robocopy with SMB compression. SMB is the protocol Windows uses for file sharing. With compression on, the data is shrunk while it travels between the two computers. It helps most with files that compress well, such as documents, text, logs and databases. Files that are already compressed, such as ZIP archives, MP4 videos and JPEG images, gain little.

⚡ Quick Answer

Use Robocopy, a command-line tool built into Windows 11. Open Command Prompt and type a command like “robocopy source destination /MT:16” to enable multi-threading for faster transfers.

Advertisement

Copy files over the network using Robocopy

Robocopy lets you copy large folders over your local network in Windows 11, and the /compress option adds SMB compression to the transfer. Before you run the copy command, file sharing must be on for both computers and the source folder must be shared on your network.

SMB compression needs support on both ends. It works on recent Windows 11 versions (22H2 and later) and on Windows Server 2022. If you copy to or from a device that doesn’t support it, such as an older Windows release or a NAS, the copy should still run, but without compression. If you get an error about the option, run winver on each PC to check the version.

Start with file sharing on both machines.

  1. enable file sharing on both computers.
  2. Next, Share the folder containing the files you want to transfer.

If a computer’s network is set to Public, Windows blocks file sharing by default. Switch it to a Private network if sharing doesn’t work.

Advertisement

You will also need the name or IP address of the other computer. The links below show how to find it:

Write down the name or address before you move on. Once you have it, you can set up the login details and run Robocopy.

Before you launch Robocopy, add the other computer's account details to Credential Manager. This is the Windows tool that stores your login information for other devices and websites. Windows then remembers the login for that computer, so you avoid authentication errors partway through a copy.

  1. Open Terminal or Command Prompt. Right-click it and choose Run as administrator if you plan to use backup mode (/ZB) later, because that mode needs elevated rights.
  2. Type the command below, then press Enter.
💻Code
cmdkey /add:COMPUTER or IP /user:COMPUTERNAMEUSERNAME /pass:PASSWORD

Replace COMPUTERNAME with the name of the target computer. Replace USERNAME and PASSWORD with credentials that belong to that machine. These must be an account on the target computer, not the one you are typing at.

Advertisement

On a domain, you can use the domain name in place of COMPUTERNAME.

You can also use the target computer's IP address instead of its name.

Here’s an example:

💻Code
cmdkey /add:192.168.1.2 /user:WORKGROUPgeekrewind /pass:password

You should see a message saying the credential was added. To undo it later, open Credential Manager from the Start menu, go to Windows Credentials, and remove the entry.

Advertisement

Once the credentials are saved, use the format below to copy files with Robocopy and SMB compression.

💻Code
robocopy \source-ip-addresspathtoremotesharedfolder C:local-devicepathtodestinationfolder /E /Z /ZB /R:5 /W:5 /TBD /NP /V /MT:16 /compress

Here's an example:

💻Code
robocopy \192.168.1.2DocumentsRemoteSharedFolder C:UsersgeekrewindDocuments /E /Z /ZB /R:5 /W:5 /TBD /NP /V /MT:16 /compress
  1. Replace the source and destination paths with your own. If a path contains spaces, put it in quotation marks.
  2. Press Enter to start the transfer to the target device.

Robocopy lists each file as it copies, with a running percentage unless you used /NP. When it finishes, it prints a summary table with the number of directories and files copied, skipped and failed. Check the Failed column. If it is not zero, scroll up to find the files that caused errors.

Run the same command again if a copy is interrupted. Robocopy skips files that are already identical at the destination and carries on with the rest.

Here's a breakdown of the Robocopy options:

  • /E — Copy subdirectories, including empty ones.
  • /Z — Copy files in restartable mode, so an interrupted copy can resume.
  • /ZB — Use restartable mode. If access is denied, switch to backup mode (this needs an elevated prompt).
  • /R:5 — Retry 5 times on a failed copy. You can specify a different number. The default is 1 million, which can make a copy appear stuck.
  • /W:5 — Wait 5 seconds before retrying (the default is 30 seconds).
  • /TBD — Wait for share names To Be Defined (retry error 67).
  • /NP — No Progress: don't display the percentage copied.
  • /V — Produce verbose output, showing skipped files.
  • /MT:16 — Do multithreaded copies with 16 threads. The default is 8. More threads can help with many small files, but they also load the network and the disks.
  • /compress — Enable SMB compression to speed up transfers over the network.
  • Robocopy offers a powerful and efficient way to copy large files over a network or locally, and it can use SMB compression on the network.
  • Enabling SMB compression can significantly reduce the time and bandwidth a transfer needs, particularly for data that compresses well.
  • The step-by-step guide above makes the process accessible to users of varying technical expertise.
  • We welcome your input through the comments section below for any feedback, corrections, or additional insights.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

📚 Related Tutorials

How to Enable File and Printer Sharing in Windows 11
Windows How to Enable File and Printer Sharing in Windows 11
How to Add or Remove Favorites in Windows 11 File Explorer
Windows How to Add or Remove Favorites in Windows 11 File Explorer
How to Access File Explorer Options in Windows 11
Windows How to Access File Explorer Options in Windows 11
How to Use Access Keys in Windows 11 File Explorer
Windows How to Use Access Keys in Windows 11 File Explorer

1 Comment

Leave a Comment

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