Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Share Files Between Windows Sandbox and PC Safely

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Windows Sandbox is a lightweight, disposable virtual machine that lets you test untrusted software without risking your main system. By default, it has no access to your files, which is great for security but inconvenient when you need to move a file in or out. This guide shows you how to share files between Windows Sandbox and your PC safely, using built-in Windows features and a few simple precautions.

What You'll Need

  • Windows 10 Pro, Enterprise, or Education (or Windows 11 Pro/Enterprise/Education) with Windows Sandbox enabled.
  • Administrator access to your PC to enable the feature if it's not already on.
  • A stable internet connection (for downloading files if needed).
  • Basic familiarity with File Explorer and copy/paste.

Step-by-Step

  1. Enable Windows Sandbox (if not already done):
    • Open Control Panel > Programs > Turn Windows features on or off.
    • Check "Windows Sandbox" and click OK. Restart if prompted.
  2. Launch Windows Sandbox:
    • Press the Start button, type "Windows Sandbox", and select it. A clean virtual Windows desktop will open.
  3. Copy a file from your PC into the Sandbox:
    • On your host PC, locate the file you want to share.
    • Right-click it and choose Copy (or press Ctrl+C).
    • Switch to the Sandbox window, right-click on the desktop or in a folder, and choose Paste (or press Ctrl+V). The file appears inside the Sandbox.
    • This works for files up to a reasonable size (a few hundred MB) and is the simplest method.
  4. Copy a file from the Sandbox back to your PC:
    • Inside the Sandbox, right-click the file and choose Copy.
    • Switch to your host PC, right-click in a folder, and choose Paste.
    • The file is now on your host. Note: this transfers the file through the clipboard, so it's not a direct disk access.
  5. Use a shared folder (more advanced):
    • Windows Sandbox doesn't have a built-in shared folder feature, but you can create a network share on your host and access it from the Sandbox.
    • On your host, create a folder, right-click it > Properties > Sharing > Share. Add "Everyone" with read/write permissions (or a specific user). Note the network path (e.g., \\YourPC\SharedFolder).
    • In the Sandbox, open File Explorer, type the network path in the address bar (e.g., \\YourPC\SharedFolder), and press Enter. You may need to enter your host's username and password.
    • This allows both to access the same files simultaneously, but be careful: any changes in the shared folder affect your real files immediately.
  6. Close the Sandbox:
    • When you're done, close the Sandbox window. You'll be warned that all data inside will be discarded. Confirm to delete the virtual environment.

Common Mistakes

  • Assuming files are saved automatically: Windows Sandbox is ephemeral. Anything you save inside is lost when you close it unless you copy it out first.
  • Sharing a folder with "Everyone" and forgetting to remove it: This can expose your files to other users on your network. Always remove the share after you're done.
  • Copying large files via clipboard: Clipboard copy is memory-intensive. For files over 1 GB, it may fail or slow down your system. Use a shared folder or a USB drive (see Tips).
  • Not enabling Windows Sandbox properly: If the feature isn't enabled, you'll get an error when trying to launch. Check the Windows features list again.

Tips

  • Use a dedicated transfer folder: Create a folder on your host specifically for sandbox transfers. This keeps track of what you've moved and avoids clutter.
  • Scan files before opening: Even though the Sandbox isolates threats, if you copy a file from the Sandbox to your PC, it could carry malware. Scan it with your antivirus before opening.
  • Use a USB drive (if possible): You can plug a USB drive into your PC, copy files to it, then in the Sandbox, go to "This PC" and you might see the USB drive under "Redirected drives". However, this requires configuration and may not work by default. Often, clipboard is simpler.
  • Keep the Sandbox updated: The Sandbox uses your host's Windows image, so keeping Windows Update current ensures the Sandbox has the latest security patches.
  • Use a virtual network share with a strong password: If you use the shared folder method, set a strong password for your host account to prevent unauthorized access.

Troubleshooting

  • Copy and paste doesn't work:
    • Make sure you're using the same clipboard format (text/files). Sometimes clipboard history interferes; restart both the host and Sandbox.
    • Try copying a small text first to test. If that works, the issue is with file size.
  • Can't access shared folder:
    • Ensure the folder is shared with the correct permissions. Try using the IP address instead of the computer name (e.g., \\192.168.1.5\SharedFolder).
    • Check that the Sandbox has network access (it should by default). If not, you may need to configure the virtual switch.
  • Windows Sandbox won't start:
    • Verify that virtualization is enabled in BIOS (Intel VT-x or AMD-V).
    • Ensure your Windows edition supports it (Pro, Enterprise, Education).
    • Run "sfc /scannow" in an elevated command prompt to repair system files.
  • Files copied from Sandbox are corrupted:
    • This is rare but can happen with large files. Try copying in chunks or using a shared folder instead.

Frequently Asked Questions

  1. Can I share a folder directly with Windows Sandbox? No, there's no built-in shared folder feature. You have to use network sharing or clipboard.
  2. Is it safe to copy files from my PC into the Sandbox? Yes, because the Sandbox is isolated. Files you copy in are not accessible to the host unless you copy them back.
  3. Will files I paste into the Sandbox appear on my PC? No, they stay inside the Sandbox and are deleted when you close it.
  4. Can I drag and drop files between the Sandbox and my PC? No, drag-and-drop doesn't work between the Sandbox and the host. Use copy/paste or a shared folder.
  5. How do I install software inside the Sandbox? You can download an installer inside the Sandbox (it has its own network) or copy an installer from your host using the clipboard.
  6. Does Windows Sandbox support USB devices? Not directly. You can't plug a USB drive into the Sandbox, but you can access it via a shared folder if you share the drive's folder.