How to copy files fast over network using Robocopy on Windows 11

Here's how to leverage Rocopy and SMS compression to transfer files super fast over the network on Windows 11.

Windows 11 Robocopy fast transfer
Windows 11 Robocopy fast transfer

If you have a new computer with the latest version of Windows 11, you may still need to transfer your files from the old computer. Usually, the easiest way is to copy the files to a USB external storage to move them to the new device, but you can also transfer them over the network.

The only problem with this last option is that if you use the File Explorer copy option, the process could take a long time and cause many issues. However, you could use the Robocopy (Robust File Copy) command-line tool, which offers the fastest way to copy files over the network between an old and new Windows 11 computer. 

This guide will teach you how to use Robocopy to quickly transfer vast amounts of files over the network on Windows 11.

Copy files over network fast on Windows 11 using Robocopy

Although Robocopy lets you copy files faster than File Explorer, a wired connection is always recommended for the best results. The time to complete the transfer will depend on the connection, type of files, and hard drive performance.

The copy process includes two steps. You first need to set up file sharing on the source computer and then use Robocopy in the destination computer to transfer the files.

1. Enable file sharing on Windows 11 (source)

To share files on the network with the express settings, use these steps:

  1. Open File Explorer on Windows 11.

  2. Open the folder with the files to migrate.

  3. Right-click the folder and select the Properties option.

    Open folder properties

  4. Click the Sharing tab.

  5. Click the Share button.

    Share folder option

  6. Select the user or group to share files from the drop-down menu.

    Select user or group

    Quick tip: If you have connection issues, it’s best to use your source account to share the folder instead of the “Everyone” group and sign in with your account on the destination device.
  7. Click the Add button.

  8. Under the “Permission Level” section, select the sharing permissions for the folder. For instance, you can select Read (default) if you only want users to view and open files. If you select Read/Write, users can view, open, modify, and delete the content in your shared folder.

    File sharing permissions

  9. Click the Share button.

  10. Right-click the path and select the Copy Link to copy the network path.

    Copy share folder path

  11. Click the Done button.

  12. Click the Close button.

After you complete the steps, note the folder path and the IP address of the source computer. You can quickly find your IP address on Settings > Network & Internet, click “Wi-Fi” or “Ethernet,” and click the connection to view the information.

If you use a Microsoft account to sign in to Windows, you may run into issues trying to access the files remotely. Creating a temporary local account in the source computer is recommended to sign in remotely with Robocopy from the destination device. Alternatively, you can switch from a Microsoft account to a local account on the source computer and then switch back to a Microsoft account. The process will fix the issue of signing in with a Microsoft account from a remote computer.

2. Copy files fast over network on Windows 11 (destination)

After configuring file sharing on the source computer, you can copy the files from the destination computer with the Robocopy command-line tool.

To transfer files fast over the network with Robocopy on Windows 11, use these steps:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to add a network user and password to Windows 11 and press Enter:

    cmdkey /add:COMPUTER-OR-DOMAIN /user:COMPUTER-OR-DOMAIN\USERNAME /pass:PASSWORD

    In the command, replace “COMPUTER-OR-DOMAIN” with the target computer, IP address, or domain, “COMPUTER-OR-DOMAIN\USERNAME” for the target device and username, and “PASSWORD” for the account password.

    This example adds the entry in Credential Manager for the “admin01” user available in the source computer that Robocopy can use to access the shared folder:

    cmdkey /add:office-pc /user:office-pc\admin01 /pass:password
  4. Type the following command to copy the files over the network and press Enter:

    robocopy \\source-device-ip\path\to\sharefolder C:\destination-device\path\to\storefiles /E /Z /ZB /R:5 /W:5 /TBD /NP /V /MT:16 /compress

    This example speeds up file copy between two computers in the network:

    robocopy \\10.1.4.181\Users\USER\OneDrive\Desktop\MyShareFiles C:\Users\USER\Documents /E /Z /ZB /R:5 /W:5 /TBD /NP /V /MT:16 /compress

    Robocopy fast copy over network

    In the above command, change the source and destination paths with your configuration.

Robocopy options details

On Windows 11, Robocopy provides a slew of features, and in this guide, we use the following options to transfer files faster and reliably.

  • /E — Copy Subdirectories, including empty ones.
  • /Z — Copy files in restartable mode.
  • /ZB — Uses restartable mode. If access is denied, use backup mode.
  • /R:5 — Retry 5 times (you can specify a different number, the default is 1 million).
  • /W:5 — Wait 5 seconds before retrying (you can specify a different number, the default is 30 seconds).
  • /TBD — Wait for share names To Be Defined (retry error 67).
  • /NP — No Progress – don’t display percentage copied.
  • /V — Produce verbose output, showing skipped files.
  • /MT:16 — Do multithreaded copies with n threads (default is 8).
  • /compress — Enables SMB compression to speed up transfers over the network.

The two most important options in this guide are the “/MT” and “/compress.” The “/MT” enables Robocopy to transfer files in multithreaded mode. Usually, when you copy files on File Explorer, the process copies one file at a time. The multithreaded feature allows you to copy multiple files simultaneously, better utilizing the bandwidth and significantly speeding up the process.

If you do not specify a number when using the “/MT” option, the default number will be “8,” which means that the tool will copy eight files simultaneously, but Robocopy supports “1” to “128” threads.

The command uses “16,” but you can specify a higher number. The only problem is that more processing power and bandwidth will be used when using higher numbers. If you have an older processor and an unreliable network connection, it might cause issues. As such, make sure to test the command before executing the command with a high number of threads.

The “/compress” is a new option available on Windows 11 that enables “SMB compression.” The feature allows Robocopy to request file compression (if applicable) as they move from source to destination over the network. It removes the need to compress files manually to reduce their size and then uncompress them at the destination computer. 

Since compressed files use less space and consume less network bandwidth, speeding up the transfer time. The only caveat is that “SMB compression” requires additional processor resources. 

The “/compress” option with Robocopy is more effective on networks using 1Gps Ethernet or Wi-Fi connections. Compression is unnecessary if you transfer files over 100Gps connections, and sometimes, it may take more time.

You can always view all the available switches, run the robocopy /? command.

About the author

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me.